From c05c78dbffac0b101d5e06a6e5a364fec0d5e6c9 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 3 Mar 2026 00:07:45 +0900 Subject: [PATCH] Fix wrong strict assertion of quota class set id Although the API spec states that only 'default' is supported, the os-quota-class-sets API has never implemented the actual validation and has echoed the id set in url. Closes-Bug: #2143057 Change-Id: Icc582dfb5fb71ee859d48fcfeca4fd31ca2780fb Signed-off-by: Takashi Kajinami --- nova/api/openstack/compute/schemas/quota_classes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nova/api/openstack/compute/schemas/quota_classes.py b/nova/api/openstack/compute/schemas/quota_classes.py index 8f73992e108e..3b90e763a6df 100644 --- a/nova/api/openstack/compute/schemas/quota_classes.py +++ b/nova/api/openstack/compute/schemas/quota_classes.py @@ -126,7 +126,7 @@ show_response = { 'additionalProperties': False, } show_response['properties']['quota_class_set']['properties'].update({ - 'id': {'type': 'string', 'const': 'default'}, + 'id': {'type': 'string'}, }) show_response['properties']['quota_class_set']['required'].append('id') @@ -135,7 +135,7 @@ show_response_v250['properties']['quota_class_set'] = copy.deepcopy( _quota_response_v250 ) show_response_v250['properties']['quota_class_set']['properties'].update({ - 'id': {'type': 'string', 'const': 'default'}, + 'id': {'type': 'string'}, }) show_response_v250['properties']['quota_class_set']['required'].append('id') @@ -144,7 +144,7 @@ show_response_v257['properties']['quota_class_set'] = copy.deepcopy( _quota_response_v257 ) show_response_v257['properties']['quota_class_set']['properties'].update({ - 'id': {'type': 'string', 'const': 'default'}, + 'id': {'type': 'string'}, }) show_response_v257['properties']['quota_class_set']['required'].append('id')