2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-13 01:40:26 +00:00

show error msg for rpower bmcstate when username is wrong

This commit is contained in:
XuWei
2018-03-22 22:09:29 -04:00
parent 8dc18c3989
commit 7d70ccdf40

View File

@ -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()