From fc0b738c7513a9e3e54b66ce5c86b97fcad700a4 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Thu, 17 Oct 2024 12:25:31 -0700 Subject: [PATCH] add notice for 0 hosts --- mangle/ipa/ipaauditor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mangle/ipa/ipaauditor.py b/mangle/ipa/ipaauditor.py index 57de64e..b3906fe 100644 --- a/mangle/ipa/ipaauditor.py +++ b/mangle/ipa/ipaauditor.py @@ -517,6 +517,9 @@ class IPAAudit: 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): """