Fix scale attribute to accept 0 as a value

Signed-off-by: Jonathan Cremin <jonathan@crem.in>
This commit is contained in:
Jonathan Cremin 2019-03-05 11:28:15 +00:00
parent 615c01c50a
commit 42c965935f
1 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ class Service(object):
network_mode=None,
networks=None,
secrets=None,
scale=None,
scale=1,
pid_mode=None,
default_platform=None,
**options
@ -192,7 +192,7 @@ class Service(object):
self.pid_mode = pid_mode or PidMode(None)
self.networks = networks or {}
self.secrets = secrets or []
self.scale_num = scale or 1
self.scale_num = scale
self.default_platform = default_platform
self.options = options