From 42c965935f93aff8961517cd7c1803afcb621a2c Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Tue, 5 Mar 2019 11:28:15 +0000 Subject: [PATCH] Fix scale attribute to accept 0 as a value Signed-off-by: Jonathan Cremin --- compose/service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compose/service.py b/compose/service.py index 6483f4f31..2754572fe 100644 --- a/compose/service.py +++ b/compose/service.py @@ -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