From a5e626b716556e09f4916e1329cb2ac76248735d Mon Sep 17 00:00:00 2001 From: Sai Sindhur Malleni Date: Mon, 3 Feb 2020 13:04:09 -0500 Subject: [PATCH] Check for stockpile_yum_repos in prescribe.py This is because we have a new stockpile_yum_packages key in stockpile output. Change-Id: I6777ce8bfff2e13554bcccfbe0e577a65e22ab74 --- browbeat/prescribe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browbeat/prescribe.py b/browbeat/prescribe.py index fe1a10861..78d8eb966 100644 --- a/browbeat/prescribe.py +++ b/browbeat/prescribe.py @@ -89,7 +89,7 @@ class Metadata(object): sample_vuln_dict = {} node = sys_data[item]['inventory_hostname'] for key, output in six.iteritems(sys_data[item]): - if 'stockpile_yum' in key and output not in bad_output_list: + if 'stockpile_yum_repos' in key and output not in bad_output_list: software_dict['repos_enabled'] = {} software_dict['repos_enabled']['repos'] = [] for repo in output: