From 18e61f6089b23888617798fadaf56e8ecd3fcc31 Mon Sep 17 00:00:00 2001 From: Maximilian Stinsky <26960620+mstinsky@users.noreply.github.com> Date: Wed, 3 Jan 2024 13:11:17 +0100 Subject: [PATCH] Fix bug when multiple images have the same name (#59) Users can upload images with any name. Only check privious images which were uploaded by the 'Image Uploader' --- tasks/rotate_image.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/rotate_image.yml b/tasks/rotate_image.yml index 3fc3f15..c555a26 100644 --- a/tasks/rotate_image.yml +++ b/tasks/rotate_image.yml @@ -1,6 +1,8 @@ - name: Check for previous public image openstack.cloud.image_info: image: "{{ display_name }} - Latest" + properties: + uploaded_by: Image Uploader register: latest_image_in_glance changed_when: latest_image_in_glance.image