From 546f8b468720d83db165938022e461db99f4b232 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Fri, 18 Oct 2024 12:35:08 -0700 Subject: [PATCH] look at host category for ALL --- mangle/ipa/ipaauditor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mangle/ipa/ipaauditor.py b/mangle/ipa/ipaauditor.py index b3906fe..6945fd3 100644 --- a/mangle/ipa/ipaauditor.py +++ b/mangle/ipa/ipaauditor.py @@ -471,7 +471,6 @@ class IPAAudit: hbac_rule_list = list(hbacs) hbac_rule_all_hosts = [] host_list = [] - hostgroup_list = [] for group in groups: group_results = IPAQuery.group_data(api, group) hbac_list = [] if not group_results.get('memberof_hbacrule', None) else group_results['memberof_hbacrule'] @@ -488,7 +487,7 @@ class IPAAudit: hbac_results = IPAQuery.hbac_data(api, hbac) hbac_host_list = [] if not hbac_results.get('memberhost_host', None) else hbac_results['memberhost_host'] hbac_hostgroup_list = [] if not hbac_results.get('memberhost_hostgroup', None) else hbac_results['memberhost_hostgroup'] - if hbac_results.get('servicecategory'): + if hbac_results.get('hostcategory'): hbac_rule_all_hosts.append(hbac) for host in hbac_host_list: