From 7e9fd95111a07d8de61cb0a7593c925ba5b918b0 Mon Sep 17 00:00:00 2001 From: XuWei Date: Thu, 12 Apr 2018 23:17:55 -0400 Subject: [PATCH] fix typo error for rspconfig powersupplyredundancy --- .../agent/hwctl/executor/openbmc_bmcconfig.py | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/xCAT-openbmc-py/lib/python/agent/hwctl/executor/openbmc_bmcconfig.py b/xCAT-openbmc-py/lib/python/agent/hwctl/executor/openbmc_bmcconfig.py index 4ae5f1eff..cd108fb42 100644 --- a/xCAT-openbmc-py/lib/python/agent/hwctl/executor/openbmc_bmcconfig.py +++ b/xCAT-openbmc-py/lib/python/agent/hwctl/executor/openbmc_bmcconfig.py @@ -386,13 +386,13 @@ rmdir \"/tmp/$userid\" \n") obmc.set_apis_values(key, value) except SelfServerException as e: return self.callback.error(e.message, node) - except SelfClientException: + except SelfClientException as e: if e.code == 404: - return self.callback.error('404 Not Found - Requested endpoint does not exist or may \ - indicate function is not supported on this OpenBMC firmware.', node) + return self.callback.error('404 Not Found - Requested endpoint does not exist or may ' \ + 'indicate function is not supported on this OpenBMC firmware.', node) if e.code == 403: - return self.callback.error('403 Forbidden - Requested endpoint does not exist or may \ - indicate function is not yet supported by OpenBMC firmware.', node) + return self.callback.error('403 Forbidden - Requested endpoint does not exist or may ' \ + 'indicate function is not yet supported by OpenBMC firmware.', node) return self.callback.error(e.message, node) self.callback.info("%s: BMC Setting %s..." % (node, openbmc.RSPCONFIG_APIS[key]['display_name'])) @@ -407,13 +407,13 @@ rmdir \"/tmp/$userid\" \n") except SelfServerException as e: return self.callback.error(e.message, node) - except SelfClientException: + except SelfClientException as e: if e.code == 404: - return self.callback.error('404 Not Found - Requested endpoint does not exist or may \ - indicate function is not supported on this OpenBMC firmware.', node) + return self.callback.error('404 Not Found - Requested endpoint does not exist or may ' \ + 'indicate function is not supported on this OpenBMC firmware.', node) if e.code == 403: - return self.callback.error('403 Forbidden - Requested endpoint does not exist or may \ - indicate function is not yet supported by OpenBMC firmware.', node) + return self.callback.error('403 Forbidden - Requested endpoint does not exist or may ' \ + 'indicate function is not yet supported by OpenBMC firmware.', node) return self.callback.error(e.message, node) if isinstance(value, dict):