Skip to content

Commit

Permalink
Updates image_helper for additional output line matching
Browse files Browse the repository at this point in the history
Signed-off-by: Collin McNeese <[email protected]>
  • Loading branch information
Collin McNeese committed Jun 12, 2021
1 parent b45c485 commit 80286f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/kitchen/docker/helpers/image_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ module ImageHelper

def parse_image_id(output)
output.each_line do |line|
if line =~ /image id|build successful|successfully built/i
return line.split(/\s+/).last
if line =~ /image id|build successful|successfully built|writing image/i
img_id = line.split(/\s+/).last
return img_id
end
end
raise ActionFailed, 'Could not parse Docker build output for image ID'
Expand Down

0 comments on commit 80286f6

Please sign in to comment.