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:
parent
bdc6b47e1f
commit
f5f9357736
3 changed files with 22 additions and 15 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue