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.: 5450c45253

Change-Id: I1c0f787f7f67c92f92dd106fc8d55580461e4aa3
This commit is contained in:
Jakob Meng
2022-05-02 11:44:36 +02:00
parent c10cc9dd8c
commit cf5007d478
2 changed files with 15 additions and 2 deletions

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.