Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Fix bug when multiple images have the same name (#59)
Browse files Browse the repository at this point in the history
Users can upload images with any name. Only check privious images which were uploaded by the 'Image Uploader'
  • Loading branch information
mstinsky authored Jan 3, 2024
1 parent c7dda57 commit 18e61f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/rotate_image.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 18e61f6

Please sign in to comment.