mirror of https://github.com/docker/compose.git
Fix scale attribute to accept 0 as a value
Signed-off-by: Jonathan Cremin <jonathan@crem.in>
This commit is contained in:
parent
615c01c50a
commit
42c965935f
|
@ -177,7 +177,7 @@ class Service(object):
|
||||||
network_mode=None,
|
network_mode=None,
|
||||||
networks=None,
|
networks=None,
|
||||||
secrets=None,
|
secrets=None,
|
||||||
scale=None,
|
scale=1,
|
||||||
pid_mode=None,
|
pid_mode=None,
|
||||||
default_platform=None,
|
default_platform=None,
|
||||||
**options
|
**options
|
||||||
|
@ -192,7 +192,7 @@ class Service(object):
|
||||||
self.pid_mode = pid_mode or PidMode(None)
|
self.pid_mode = pid_mode or PidMode(None)
|
||||||
self.networks = networks or {}
|
self.networks = networks or {}
|
||||||
self.secrets = secrets or []
|
self.secrets = secrets or []
|
||||||
self.scale_num = scale or 1
|
self.scale_num = scale
|
||||||
self.default_platform = default_platform
|
self.default_platform = default_platform
|
||||||
self.options = options
|
self.options = options
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue