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>
This commit is contained in:
parent
8c760d38a0
commit
a7c8bcda2e
@ -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
|
||||||
|
6
releasenotes/notes/bug-2058492-b86e8eceb04eec67.yaml
Normal file
6
releasenotes/notes/bug-2058492-b86e8eceb04eec67.yaml
Normal 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>`__
|
Loading…
Reference in New Issue
Block a user