Refactored project{,_info} modules

Change-Id: I863d08c42b4c708444b74e3d47f0ca70a8ff94fd
This commit is contained in:
Jakob Meng
2023-01-04 19:53:15 +01:00
parent 0071fdcd97
commit eaa26c6b9c
12 changed files with 434 additions and 440 deletions

View File

@@ -21,8 +21,8 @@
- name: Verify demo project
assert:
that:
- projects.openstack_projects|length == 1
- projects.openstack_projects.0.name == "demo"
- projects.projects|length == 1
- projects.projects.0.name == "demo"
- name: Grant access to flavor
openstack.cloud.compute_flavor_access:
@@ -47,7 +47,7 @@
assert:
that:
- (flavor_show.stdout | from_json).name == 'ansible_flavor'
- projects.openstack_projects.0.id in (flavor_show.stdout | from_json).access_project_ids
- projects.projects.0.id in (flavor_show.stdout | from_json).access_project_ids
- name: Grant access to flavor again
openstack.cloud.compute_flavor_access: