Refactored compute_flavor_info module

Change-Id: Ic598a60c2dd6fb465965fa8beee0ea973385bbcf
This commit is contained in:
Jakob Meng
2023-01-13 09:04:50 +01:00
parent e34f259566
commit 0c75f19e4c
2 changed files with 123 additions and 168 deletions

View File

@@ -238,7 +238,7 @@
register: flavor_info
- assert:
that: item in flavor_info.openstack_flavors[0]
that: item in flavor_info.flavors[0]
loop: "{{ expected_fields }}"
- name: List flavors with filter
@@ -250,5 +250,5 @@
- name: Check output of list flavors with filter
assert:
that:
- flavor.openstack_flavors | length == 1
- flavor.openstack_flavors.0.name == "m1.tiny"
- flavor.flavors | length == 1
- flavor.flavors.0.name == "m1.tiny"