Cast scale value to int. Fixes #4592.

reviewable/pr18780/r1
Chris Houseknecht 8 years ago
parent 5ab1a6f88d
commit 4a560d4a15
No known key found for this signature in database
GPG Key ID: 78F1698C5705A81B

@ -877,7 +877,7 @@ class ContainerManager(DockerBaseClass):
result['actions'][service.name]['scale'] = self.scale[service.name] - len(containers) result['actions'][service.name]['scale'] = self.scale[service.name] - len(containers)
if not self.check_mode: if not self.check_mode:
try: try:
service.scale(self.scale[service.name]) service.scale(int(self.scale[service.name]))
except Exception as exc: except Exception as exc:
self.client.fail("Error scaling %s - %s" % (service.name, str(exc))) self.client.fail("Error scaling %s - %s" % (service.name, str(exc)))
return result return result

Loading…
Cancel
Save