2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-09 04:56:12 +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:
Jarrod Johnson 2018-01-16 10:20:28 -05:00
parent b1951b3d86
commit 30e24cc768

View File

@ -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