mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 16:23:10 +00:00
Remove check for Ghost state
This doesn't exist anymore and causes ansible to throw a KeyError
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user