mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-04 07:11:49 +00:00
Remove docker protocol when inspecting image (#901)
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
parent
14ac4a8045
commit
47767dab21
1 changed files with 5 additions and 1 deletions
|
|
@ -1621,7 +1621,11 @@ class PodmanContainer:
|
|||
if is_rootfs:
|
||||
return {'Id': self.module_params['image']}
|
||||
rc, out, err = self.module.run_command(
|
||||
[self.module_params['executable'], b'image', b'inspect', self.module_params['image']])
|
||||
[self.module_params['executable'],
|
||||
b'image',
|
||||
b'inspect',
|
||||
self.module_params['image'].replace('docker://', '')])
|
||||
self.module.log("PODMAN-CONTAINER-DEBUG: %s: %s" % (out, self.module_params['image']))
|
||||
return json.loads(out)[0] if rc == 0 else {}
|
||||
|
||||
def _get_podman_version(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue