lib/command/build_image.rb in cpl-2.2.0 vs lib/command/build_image.rb in cpl-2.2.1
- old
+ new
@@ -39,10 +39,11 @@
build_args: build_args)
progress.puts("\nPushed image to '/org/#{config.org}/image/#{image_name}'.\n\n")
step("Waiting for image to be available", retry_on_failure: true) do
- image_name == cp.latest_image(refresh: true)
+ images = cp.query_images["items"]
+ images.find { |image| image["name"] == image_name }
end
end
end
end