From eaa0521bee0997f0d30641825e0ac2af9c1ace09 Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Fri, 7 Jun 2024 07:55:23 -0700 Subject: [PATCH] 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 --- ironic/api/controllers/v1/port.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ironic/api/controllers/v1/port.py b/ironic/api/controllers/v1/port.py index 13131152bd..020e50b56e 100644 --- a/ironic/api/controllers/v1/port.py +++ b/ironic/api/controllers/v1/port.py @@ -699,7 +699,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