mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-18 05:33:17 +00:00
Fix unexpected error on bad authentication
When bad credentials were caught by pyghmi, the ipmi plugin was not specifically characterizing it. Address this shortcoming.
This commit is contained in:
parent
9b7d1d6c5b
commit
230397c2a3
@ -256,6 +256,11 @@ class IpmiHandler(object):
|
||||
if self.broken:
|
||||
if self.error == 'timeout':
|
||||
return iter([msg.ConfluentTargetTimeout(self.node)])
|
||||
elif ('Unauthorized' in self.error or
|
||||
'Incorrect password' in self.error):
|
||||
return iter([msg.ConfluentTargetInvalidCredentials(self.node)])
|
||||
elif 'Incorrect password' in self.error:
|
||||
return iter([C])
|
||||
else:
|
||||
raise Exception(self.error)
|
||||
if self.element == ['power', 'state']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user