mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
ec2_ami_facts: return images in a consistent order (#40679)
* ec2_ami_facts: return images in a consistent order
This commit is contained in:
@@ -234,6 +234,7 @@ def list_ec2_images(ec2_client, module):
|
||||
# describing launch permissions of images owned by others is not permitted, but shouldn't cause failures
|
||||
pass
|
||||
|
||||
images.sort(key=lambda e: e.get('creation_date', '')) # it may be possible that creation_date does not always exist
|
||||
module.exit_json(images=images)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user