Cast scale value to int. Fixes #4592.
This commit is contained in:
parent
15b41d2718
commit
f33828e753
1 changed files with 1 additions and 1 deletions
|
@ -877,7 +877,7 @@ class ContainerManager(DockerBaseClass):
|
|||
result['actions'][service.name]['scale'] = self.scale[service.name] - len(containers)
|
||||
if not self.check_mode:
|
||||
try:
|
||||
service.scale(self.scale[service.name])
|
||||
service.scale(int(self.scale[service.name]))
|
||||
except Exception as exc:
|
||||
self.client.fail("Error scaling %s - %s" % (service.name, str(exc)))
|
||||
return result
|
||||
|
|
Loading…
Reference in a new issue