mirror of
https://github.com/docker/compose.git
synced 2025-07-22 13:14:29 +02:00
Re-enable 0 scale/deploy.replicas
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
3ee52f2f28
commit
b111ef6322
@ -311,12 +311,12 @@ class Project:
|
||||
return 1 if scale is None else scale
|
||||
|
||||
replicas = deploy_dict.get('replicas', None)
|
||||
if scale and replicas:
|
||||
if scale is not None and replicas is not None:
|
||||
raise ConfigurationError(
|
||||
"Both service.scale and service.deploy.replicas are set."
|
||||
" Only one of them must be set."
|
||||
)
|
||||
if replicas:
|
||||
if replicas is not None:
|
||||
scale = replicas
|
||||
if scale is None:
|
||||
return 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user