1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #7338 from discordianfish/remove-ghost-state

Remove check for Ghost state
This commit is contained in:
James Cammarata 2014-05-09 13:06:16 -05:00
commit c97dec9d75

View file

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