From 7d70ccdf40724828bca2ab7432152539e9174f6a Mon Sep 17 00:00:00 2001 From: XuWei Date: Thu, 22 Mar 2018 22:09:29 -0400 Subject: [PATCH] show error msg for rpower bmcstate when username is wrong --- .../lib/python/agent/hwctl/executor/openbmc_power.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-openbmc-py/lib/python/agent/hwctl/executor/openbmc_power.py b/xCAT-openbmc-py/lib/python/agent/hwctl/executor/openbmc_power.py index c3524cf9a..e493816e3 100644 --- a/xCAT-openbmc-py/lib/python/agent/hwctl/executor/openbmc_power.py +++ b/xCAT-openbmc-py/lib/python/agent/hwctl/executor/openbmc_power.py @@ -75,6 +75,9 @@ class OpenBMCPowerTask(ParallelNodesCommand): login_message = "Login to BMC failed: Can't connect to {0} {1}.".format(e.host_and_port, e.detail_msg) self.callback.error(login_message, node) return bmc_state + except SelfClientException as e: + self.callback.error(e.message, node) + return bmc_state try: state = obmc.get_bmc_state()