Handle new output for podman image build (#59807)
This commit is contained in:
parent
e410dcbfed
commit
372f21e3b5
2 changed files with 6 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- podman_image - handle new output format for image build
|
|
@ -416,6 +416,10 @@ class PodmanImageManager(object):
|
|||
splitline = line.rsplit(split_on, maxsplit)
|
||||
layer_ids.append(splitline[1])
|
||||
|
||||
# Podman 1.4 changed the output to only include the layer id when run in quiet mode
|
||||
if not layer_ids:
|
||||
layer_ids = lines.splitlines()
|
||||
|
||||
return(layer_ids[-1])
|
||||
|
||||
def present(self):
|
||||
|
|
Loading…
Reference in a new issue