mirror of
https://opendev.org/openstack/ironic.git
synced 2026-01-16 23:01:47 +00:00
fix: Fix class typo for portgroup. Portgroup instead of PortGroup
Apparently, this has been around for ages, btu the error was likely
not exactly right as a result of this. Anyway, quick fix.
Change-Id: Idee3c1edfdd65928eaa5f8d30b62474d85dec277
(cherry picked from commit eaa0521bee)
This commit is contained in:
parent
c51cf28591
commit
072e02da36
1 changed files with 1 additions and 1 deletions
|
|
@ -672,7 +672,7 @@ class PortsController(rest.RestController):
|
|||
context, port_dict['portgroup_uuid'])
|
||||
else:
|
||||
portgroup = None
|
||||
except exception.PortGroupNotFound as e:
|
||||
except exception.PortgroupNotFound as e:
|
||||
# Change error code because 404 (NotFound) is inappropriate
|
||||
# response for a PATCH request to change a Port
|
||||
e.code = http_client.BAD_REQUEST # BadRequest
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue