Merge "Fix incorrect condition in kolla_container_facts"

This commit is contained in:
Zuul 2024-04-15 15:13:32 +00:00 committed by Gerrit Code Review
commit de1552b7d7
2 changed files with 7 additions and 1 deletions

View File

@ -104,7 +104,7 @@ def use_podman(module, results):
for container in containers:
container.reload()
container_name = container.attrs['Name']
if container_name not in names:
if names and container_name not in names:
continue
results['_containers'].append(container.attrs)
results[container_name] = container.attrs

View File

@ -0,0 +1,6 @@
---
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>`__