mirror of
https://github.com/docker/compose.git
synced 2025-07-22 21:24:38 +02:00
set scale default to 1 on deploy
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
096d938bac
commit
d773719060
@ -318,6 +318,8 @@ class Project:
|
|||||||
)
|
)
|
||||||
if replicas:
|
if replicas:
|
||||||
scale = replicas
|
scale = replicas
|
||||||
|
if scale is None:
|
||||||
|
return 1
|
||||||
# deploy may contain placement constraints introduced in v3.8
|
# deploy may contain placement constraints introduced in v3.8
|
||||||
max_replicas = deploy_dict.get('placement', {}).get(
|
max_replicas = deploy_dict.get('placement', {}).get(
|
||||||
'max_replicas_per_node',
|
'max_replicas_per_node',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user