mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-09 13:05:49 +00:00
Fix type compatibility with enclosure.bay
enclosure.bay manifests as an int. Use format() to tolerate either way.
This commit is contained in:
parent
b1951b3d86
commit
30e24cc768
@ -795,7 +795,7 @@ 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=' + bay)
|
||||
tnl = cfg.filter_node_attributes('enclosure.bay={0}'.format(bay))
|
||||
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