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:
parent
55c5bff0f9
commit
88275f5110
@ -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', '')
|
||||
|
Loading…
x
Reference in New Issue
Block a user