Fixed return value disable{d,s}_reason in compute_service_info module

OpenStack SDK 0.53 renamed parameter disables_reason to disabled_reason
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.: https://github.com/openstack/openstacksdk/commit/5450c4525313581b2ebc0e1ab6ac6252964c595f

Change-Id: I1c0f787f7f67c92f92dd106fc8d55580461e4aa3
(cherry picked from commit cf5007d478)
This commit is contained in:
Jakob Meng
2022-05-02 12:30:33 +00:00
parent 708ed756ca
commit a70a4c3424
2 changed files with 15 additions and 2 deletions
+5 -1
View File
@@ -61,7 +61,11 @@ openstack_compute_services:
type: str
disabled_reason:
description: The reason why the service is disabled
returned: success
returned: success and OpenStack SDK >= 0.53
type: str
disables_reason:
description: The reason why the service is disabled
returned: success and OpenStack SDK < 0.53
type: str
availability_zone:
description: The availability zone name.