Commit 595813a1 by Johannes 'fish' Ziemke Committed by James Cammarata

Remove check for Ghost state

This doesn't exist anymore and causes ansible to throw a KeyError
parent 0de30657
......@@ -524,7 +524,7 @@ class DockerManager:
def get_running_containers(self):
running = []
for i in self.get_deployed_containers():
if i['State']['Running'] == True and i['State']['Ghost'] == False:
if i['State']['Running'] == True and i['State'].get('Ghost', False):
running.append(i)
return running
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment