aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/firewalld.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/sos/plugins/firewalld.py b/sos/plugins/firewalld.py
index 26731fd3..f7b41c4a 100644
--- a/sos/plugins/firewalld.py
+++ b/sos/plugins/firewalld.py
@@ -9,7 +9,7 @@
#
# See the LICENSE file in the source distribution for further information.
-from sos.plugins import Plugin, RedHatPlugin
+from sos.plugins import Plugin, RedHatPlugin, SoSPredicate
class FirewallD(Plugin, RedHatPlugin):
@@ -33,7 +33,10 @@ class FirewallD(Plugin, RedHatPlugin):
])
# collect nftables ruleset
- self.add_cmd_output("nft list ruleset")
+ nft_pred = SoSPredicate(self,
+ kmods=['nf_tables', 'nfnetlink'],
+ required={'kmods': 'all'})
+ self.add_cmd_output("nft list ruleset", pred=nft_pred, changes=True)
# use a 10s timeout to workaround dbus problems in
# docker containers.