diff options
author | Debayan Ray <debayan.ray@gmail.com> | 2019-01-03 03:22:56 +0000 |
---|---|---|
committer | Debayan Ray <debayan.ray@gmail.com> | 2019-01-03 03:36:41 +0000 |
commit | 831b6ff16f8a47c25b60a6867b950d7978f1d184 (patch) | |
tree | 957ff6048752f2eaaf3f4371ec7a18bfb9d5fd0b /ironic/drivers/modules/redfish/inspect.py | |
parent | 68832e83402b241d5745db8a457369ebd743a290 (diff) | |
download | ironic-831b6ff16f8a47c25b60a6867b950d7978f1d184.tar.gz |
Fix SushyError namespacing in Redfish inspection
Properly namespaces SushyError exception in Redfish inspection.
Story: 2004560
Task: 28543
Change-Id: I77473090198f4873b17d1af8b7036afdad13865f
Diffstat (limited to 'ironic/drivers/modules/redfish/inspect.py')
-rw-r--r-- | ironic/drivers/modules/redfish/inspect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ironic/drivers/modules/redfish/inspect.py b/ironic/drivers/modules/redfish/inspect.py index fb57a7564..9d6e6658e 100644 --- a/ironic/drivers/modules/redfish/inspect.py +++ b/ironic/drivers/modules/redfish/inspect.py @@ -124,7 +124,7 @@ class RedfishInspect(base.InspectInterface): simple_storage_size = simple_storage_size[0] - except sushy.SushyError as ex: + except sushy.exceptions.SushyError as ex: LOG.debug("No simple storage information discovered " "for node %(node)s: %(err)s", {'node': task.node.uuid, 'err': ex}) @@ -140,7 +140,7 @@ class RedfishInspect(base.InspectInterface): storage_size = storage_size[0] - except sushy.SushyError as ex: + except sushy.exceptions.SushyError as ex: LOG.debug("No storage volume information discovered " "for node %(node)s: %(err)s", {'node': task.node.uuid, 'err': ex}) |