mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-07-25 17:24:28 +00:00
This makes image_info compatible with new sdk version - This patch changes get_image (which is a cloud object method) to image.get_image (proxy object method) - image.images accepts **query which is a dict object. So this patch changes the args passed to a dict. If properties is not specified it passes an empty dict. - updates the documentation to reflect the actual returned parameters - adds a ci test to list all images without specifying image name or property and assert no field is missing - changes openstack_image to image in ansible return value Change-Id: Ibf934568f069c305747fc24fbb22ce3fc095286c
12 lines
302 B
YAML
12 lines
302 B
YAML
---
|
|
- name: List all images # This will list at least the default cirros image of devstack
|
|
openstack.cloud.image_info:
|
|
cloud: "{{ cloud }}"
|
|
register: image_list_result
|
|
|
|
- name: Assert fields
|
|
assert:
|
|
that:
|
|
- item in image_list_result.images.0.keys()
|
|
loop: "{{ expected_fields }}"
|