mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-09 04:56:12 +00:00
Fix getting nodenames based on enclosure uuid
Must listify the output and make sure the previous output is fed into the second filter.
This commit is contained in:
parent
0f4940cd7c
commit
76818135a6
@ -799,7 +799,9 @@ def get_nodename_from_enclosures(cfg, info):
|
||||
bay = info.get('enclosure.bay', None)
|
||||
if bay:
|
||||
tnl = cfg.filter_node_attributes('enclosure.manager=' + encl)
|
||||
tnl = cfg.filter_node_attributes('enclosure.bay={0}'.format(bay))
|
||||
tnl = list(
|
||||
cfg.filter_node_attributes('enclosure.bay={0}'.format(bay),
|
||||
tnl))
|
||||
if len(tnl) == 1:
|
||||
# This is not a secure assurance, because it's by
|
||||
# uuid instead of a key
|
||||
|
Loading…
Reference in New Issue
Block a user