mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-08 12:36:03 +00:00
Fix handling of numeric enclosure.bay
enclosure.bay is integer rather than string now. Fix the filter to use format, which is more robust in numeric versus string anyway. Also, consistently make the underlying data integer rather than sometimes string.
This commit is contained in:
parent
2795dfe7b9
commit
60756d9b41
@ -608,7 +608,7 @@ def eval_node(cfg, handler, info, nodename, manual=False):
|
||||
# search for nodes fitting our description using filters
|
||||
# lead with the most specific to have a small second pass
|
||||
nl = cfg.filter_node_attributes(
|
||||
'enclosure.bay=' + info['enclosure.bay'], nl)
|
||||
'enclosure.bay={0}'.format(info['enclosure.bay']), nl)
|
||||
nl = list(nl)
|
||||
if len(nl) != 1:
|
||||
info['discofailure'] = 'ambigconfig'
|
||||
|
@ -58,7 +58,7 @@ class NodeHandler(bmchandler.NodeHandler):
|
||||
'/v2/cmm/sp/7')
|
||||
if not bayid:
|
||||
return
|
||||
self.info['enclosure.bay'] = bayid
|
||||
self.info['enclosure.bay'] = int(bayid)
|
||||
smmid = ipmicmd._oem.immhandler.get_property(
|
||||
'/v2/ibmc/smm/chassis/uuid')
|
||||
if not smmid:
|
||||
|
Loading…
Reference in New Issue
Block a user