Handle new output for podman image build (#59807)

pull/59962/head
Sam Doran 5 years ago committed by ansibot
parent e410dcbfed
commit 372f21e3b5

@ -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…
Cancel
Save