From aa6857b1c76ac891d58444925acaf523d683f6ac Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 19 Sep 2017 15:22:40 -0400 Subject: [PATCH] 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. --- confluent_server/confluent/discovery/handlers/xcc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_server/confluent/discovery/handlers/xcc.py b/confluent_server/confluent/discovery/handlers/xcc.py index faf77c9f..ad222489 100644 --- a/confluent_server/confluent/discovery/handlers/xcc.py +++ b/confluent_server/confluent/discovery/handlers/xcc.py @@ -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