Merge "fix: Fix class typo for portgroup. Portgroup instead of PortGroup"

This commit is contained in:
Zuul 2024-06-11 19:13:53 +00:00 committed by Gerrit Code Review
commit fa685bf8fa

View File

@ -699,7 +699,7 @@ class PortsController(rest.RestController):
context, port_dict['portgroup_uuid']) context, port_dict['portgroup_uuid'])
else: else:
portgroup = None portgroup = None
except exception.PortGroupNotFound as e: except exception.PortgroupNotFound as e:
# Change error code because 404 (NotFound) is inappropriate # Change error code because 404 (NotFound) is inappropriate
# response for a PATCH request to change a Port # response for a PATCH request to change a Port
e.code = http_client.BAD_REQUEST # BadRequest e.code = http_client.BAD_REQUEST # BadRequest