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
This commit is contained in:
Sai Sindhur Malleni 2020-02-03 13:04:09 -05:00
parent 735822463d
commit a5e626b716
1 changed files with 1 additions and 1 deletions

View File

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