mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Fix: Remove check for Ghost state
This fixed the just committed change handling non existent Ghost state.
This commit is contained in:
@@ -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'].get('Ghost', False):
|
if i['State']['Running'] == True and i['State'].get('Ghost', False) == False:
|
||||||
running.append(i)
|
running.append(i)
|
||||||
|
|
||||||
return running
|
return running
|
||||||
|
|||||||
Reference in New Issue
Block a user