2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-28 11:57:37 +00:00

Fix xcc handler on incomplete data

A datum may come in without an attribute member at all.  Treat
this as 'false', obviously.
This commit is contained in:
Jarrod Johnson 2019-01-14 15:37:04 -05:00
parent 55c5bff0f9
commit 88275f5110

View File

@ -27,7 +27,7 @@ class NodeHandler(immhandler.NodeHandler):
def adequate(cls, info):
# We can sometimes receive a partially initialized SLP packet
# This is not adequate for being satisfied
return bool(info['attributes'])
return bool(info.get('attributes', {}))
def preconfig(self):
ff = self.info.get('attributes', {}).get('enclosure-form-factor', '')