2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-22 11:10:24 +00:00

Merge pull request #5000 from xuweibj/I4999

show error msg for rpower bmcstate when username is wrong
This commit is contained in:
zet809
2018-03-23 14:31:25 +08:00
committed by GitHub

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