Remove project.create_containers(), revamp project.recreate_containers()

`recreate_containers` now returns two lists of old+new containers, along
with their services.
This commit is contained in:
Aanand Prasad 2014-01-15 13:17:39 +00:00
commit f5f9357736
3 changed files with 22 additions and 15 deletions

View file

@ -80,7 +80,7 @@ class Service(object):
"""
old_containers = self.containers(stopped=True)
if len(old_containers) == 0:
return [self.create_container(**override_options)]
return ([], [self.create_container(**override_options)])
else:
new_containers = []
for old_container in old_containers: