lib/command/cleanup_images.rb in cpl-1.4.0 vs lib/command/cleanup_images.rb in cpl-2.2.0

- old
+ new

@@ -54,10 +54,10 @@ def remove_deployed_image(app, images) return images unless cp.fetch_gvc(app) # If app exists, remove latest image, because we don't want to delete the image that is currently deployed - latest_image_name = latest_image_from(images, app_name: app) + latest_image_name = cp.latest_image_from(images, app_name: app) images.reject { |image| image["name"] == latest_image_name } end def parse_images_and_sort_by_created(images) images = images.map do |image|