From 76818135a6acc32cd4c5200590c995ad812324d4 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 16 Jan 2018 13:29:36 -0500 Subject: [PATCH] Fix getting nodenames based on enclosure uuid Must listify the output and make sure the previous output is fed into the second filter. --- confluent_server/confluent/discovery/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/confluent_server/confluent/discovery/core.py b/confluent_server/confluent/discovery/core.py index 82ba1c0b..fd1e303a 100644 --- a/confluent_server/confluent/discovery/core.py +++ b/confluent_server/confluent/discovery/core.py @@ -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