Skip to content

Commit

Permalink
add notice for 0 hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
nazunalika committed Oct 17, 2024
1 parent 689e7aa commit fc0b738
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mangle/ipa/ipaauditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,9 @@ def user_deep_list(api, user, groups, hbacs):
for h in hbac_host_dict[hrule]:
print(h)

if len(hbac_host_dict[hrule]) == 0:
print('(No hosts set for this rule)')

@staticmethod
def group_deep_list(api, group):
"""
Expand Down

0 comments on commit fc0b738

Please sign in to comment.