2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 03:19:48 +00:00

Fix configuration auto-fixup in ipmi

If a session was attempted but failed before creation, a trace was thrown.
Fix this by catching the scenario and passing, since the desired effect is
already there.
This commit is contained in:
Jarrod Johnon 2015-01-19 16:32:30 -05:00
parent 5ddc97603a
commit cfb9575a5e

View File

@ -52,7 +52,12 @@ class IpmiCommandWrapper(ipmicommand.Command):
super(self.__class__, self).__init__(**kwargs)
def _attribschanged(self, nodeattribs, configmanager, **kwargs):
self.ipmi_session._mark_broken()
try:
self.ipmi_session._mark_broken()
except AttributeError:
# if ipmi_session doesn't already exist,
# then do nothing
pass
def _ipmi_evtloop():
while True: