Cast scale value to int. Fixes #4592.

This commit is contained in:
Chris Houseknecht 2016-09-20 10:29:27 -04:00 committed by Matt Clay
parent 15b41d2718
commit f33828e753

View file

@ -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