2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-06-17 00:50:46 +00:00

Do not consider refusal of default creds fatal

During discovery, there's a chance that user/pass already set.
For now, do not fret over this and just silently fail to enable
enclosure manager.
This commit is contained in:
Jarrod Johnson
2017-09-19 15:22:40 -04:00
parent 9c5f50341f
commit aa6857b1c7
@@ -32,7 +32,8 @@ class NodeHandler(immhandler.NodeHandler):
ipmicmd = self._get_ipmicmd()
ipmicmd.xraw_command(netfn=0x3a, command=0xf1, data=(1,))
except pygexc.IpmiException as e:
if e.ipmicode != 193:
if (e.ipmicode != 193 and 'Unauthorized name' not in str(e) and
'Incorrect password' not in str(e)):
# raise an issue if anything other than to be expected
raise
#TODO: decide how to clean out if important