Fix disabled_reason's type in services schema

disable_reason in services schema can be null when status
is enabled, so this is to add null in disable_reason's type.

https://developer.openstack.org/api-ref/compute/#update-compute-service

Change-Id: I5478eff73675d0f236acddfb5387cc8cd9e91a5c
partially-implements: blueprint full-schema-for-all-microversions
This commit is contained in:
zhufl 2018-08-14 16:08:38 +08:00
parent f87c08c7c9
commit 54ea756a74

View File

@ -42,7 +42,8 @@ update_service = {
'properties': {
'id': {'type': 'string', 'format': 'uuid'},
'binary': {'type': 'string'},
'disabled_reason': {'type': 'string'},
# disabled_reason can be null when status is enabled.
'disabled_reason': {'type': ['string', 'null']},
'host': {'type': 'string'},
'state': {'type': 'string'},
'status': {'type': 'string'},