Skip to content
Snippets Groups Projects
Commit a7c8bcda authored by Martin Hiner's avatar Martin Hiner
Browse files

Fix incorrect condition in kolla_container_facts


Incorrect condition in Podman part prevented the retrieval
of facts of all the containers when no names were provided.

Closes-Bug: #2058492
Change-Id: I6d7f7ca0523eb17c7d9a9b93d2037bf77f2c2a47
Signed-off-by: default avatarMartin Hiner <martin.hiner@tietoevry.com>
parent 8c760d38
No related branches found
No related tags found
No related merge requests found
...@@ -104,7 +104,7 @@ def use_podman(module, results): ...@@ -104,7 +104,7 @@ def use_podman(module, results):
for container in containers: for container in containers:
container.reload() container.reload()
container_name = container.attrs['Name'] container_name = container.attrs['Name']
if container_name not in names: if names and container_name not in names:
continue continue
results['_containers'].append(container.attrs) results['_containers'].append(container.attrs)
results[container_name] = container.attrs results[container_name] = container.attrs
......
---
fixes:
- |
Incorrect condition in Podman part prevented the retrieval
of facts of all the containers when no names were provided.
`LP#2058492 <https://launchpad.net/bugs/2058492>`__
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment