From ca054d3fdc788103daf4372f016b802f93055805 Mon Sep 17 00:00:00 2001 From: Sai Sindhur Malleni Date: Mon, 12 Jun 2017 17:45:15 -0400 Subject: [PATCH] Fix hardcoded references to hostnames When dumping software metadata we expect undercloud, controller and compute in the hostnames. We should instead be looking for the group names as the group names remain constant irrespective of the hostnames. Change-Id: Ic010ce31dec79c0d66e22991cab239a50b321e9a --- lib/Metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Metadata.py b/lib/Metadata.py index bce7da98f..aeba8849a 100644 --- a/lib/Metadata.py +++ b/lib/Metadata.py @@ -68,7 +68,7 @@ class Metadata(object): soft_all_dict = [] for item in sys_data['system_data']: nodes = ['controller', 'undercloud', 'compute'] - if any(node in item['inventory_hostname'] for node in nodes): + if any(node in item['group_names'] for node in nodes): software_dict = {} for soft in item: if 'openstack' in soft: