Remove check for Ghost state

This doesn't exist anymore and causes ansible to throw a KeyError
This commit is contained in:
Johannes 'fish' Ziemke 2014-05-08 23:17:48 +02:00
parent eb61c3737c
commit dccf70ec0b

View file

@ -524,7 +524,7 @@ class DockerManager:
def get_running_containers(self): def get_running_containers(self):
running = [] running = []
for i in self.get_deployed_containers(): 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) running.append(i)
return running return running