mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-05-08 14:23:03 +00:00
Fixed return values in compute_service_info module again
OpenStack SDK 0.53 added parameters is_forced_down and updated_at
in openstack/compute/v2/service.py, hence our compute_service_info
module will return different values depending on which release of
the OpenStack SDK is used.
Ref.: 5450c45253
Change-Id: I4b055266555cb91681d0ab6edcaa850e061f3afb
This commit is contained in:
@@ -10,8 +10,8 @@
|
|||||||
when: sdk_version is version(0.53, '<')
|
when: sdk_version is version(0.53, '<')
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- '["availability_zone", "binary", "disables_reason", "is_forced_down",
|
- '["availability_zone", "binary", "disables_reason",
|
||||||
"host", "name", "state", "status", "updated_at", "id"] |
|
"host", "name", "state", "status", "id"] |
|
||||||
difference(result.openstack_compute_services.0.keys()) | length == 0'
|
difference(result.openstack_compute_services.0.keys()) | length == 0'
|
||||||
|
|
||||||
- name: Assert fields on OpenStack SDK 0.53 and later
|
- name: Assert fields on OpenStack SDK 0.53 and later
|
||||||
|
|||||||
Reference in New Issue
Block a user