mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix podman_image_info parsing of podman output.
Stripping the output from `podman image ls -q` prevents passing a blank image ID to `podman image inspect`, which would fail.
This commit is contained in:
parent
3136007032
commit
a05be890ad
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ def get_image_info(module, executable, name):
|
||||||
def get_all_image_info(module, executable):
|
def get_all_image_info(module, executable):
|
||||||
command = [executable, 'image', 'ls', '-q']
|
command = [executable, 'image', 'ls', '-q']
|
||||||
rc, out, err = module.run_command(command)
|
rc, out, err = module.run_command(command)
|
||||||
name = out.split('\n')
|
name = out.strip().split('\n')
|
||||||
out = get_image_info(module, executable, name)
|
out = get_image_info(module, executable, name)
|
||||||
|
|
||||||
return out
|
return out
|
||||||
|
|
Loading…
Reference in a new issue