Skip to content

Commit

Permalink
Merge pull request #382 from collinmcneese/cm/image_helper_update
Browse files Browse the repository at this point in the history
  • Loading branch information
tas50 authored Jun 12, 2021
2 parents b45c485 + 80286f6 commit 1e58989
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 1e58989

Please sign in to comment.