diff options
| author | Martin Hiner <martin.hiner@tietoevry.com> | 2024-03-12 11:07:09 +0100 |
|---|---|---|
| committer | Martin Hiner <martin.hiner@tietoevry.com> | 2024-03-20 16:13:23 +0100 |
| commit | a7c8bcda2e8b3c9d218555349d0440a9c9232fa1 (patch) | |
| tree | 842e09af1df7c19115719168c1dc39345f7c83d1 /ansible/library | |
| parent | 8c760d38a0d7708a2b478f79725411b64c4bb73f (diff) | |
| download | kolla-ansible-a7c8bcda2e8b3c9d218555349d0440a9c9232fa1.tar.gz kolla-ansible-a7c8bcda2e8b3c9d218555349d0440a9c9232fa1.zip | |
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: Martin Hiner <martin.hiner@tietoevry.com>
Diffstat (limited to 'ansible/library')
| -rw-r--r-- | ansible/library/kolla_container_facts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/library/kolla_container_facts.py b/ansible/library/kolla_container_facts.py index 3f75a4478..ef3617db2 100644 --- a/ansible/library/kolla_container_facts.py +++ b/ansible/library/kolla_container_facts.py @@ -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 |
