Skip to content

Commit

Permalink
look at host category for ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
nazunalika committed Oct 18, 2024
1 parent 7f3a4b4 commit 546f8b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mangle/ipa/ipaauditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,6 @@ def user_deep_list(api, user, groups, hbacs):
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']
Expand All @@ -488,7 +487,7 @@ def user_deep_list(api, user, groups, hbacs):
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:
Expand Down

0 comments on commit 546f8b4

Please sign in to comment.