lib/kitchen/docker/helpers/image_helper.rb in kitchen-docker-2.12.0 vs lib/kitchen/docker/helpers/image_helper.rb in kitchen-docker-2.13.0

- old
+ new

@@ -24,11 +24,11 @@ include Kitchen::Docker::Helpers::CliHelper include Kitchen::Docker::Helpers::ContainerHelper def parse_image_id(output) output.each_line do |line| - if line =~ /writing image sha256:[[:xdigit:]]{64} done/i - img_id = line[/writing image (sha256:[[:xdigit:]]{64}) done/i,1] + if line =~ /writing image (sha256:[[:xdigit:]]{64})(?: \d*\.\ds)? done/i + img_id = line[/writing image (sha256:[[:xdigit:]]{64})(?: \d*\.\ds)? done/i,1] return img_id end if line =~ /image id|build successful|successfully built/i img_id = line.split(/\s+/).last return img_id