diff --git a/system/firewalld.py b/system/firewalld.py index 171cfa5b77e..a3a1e5f410e 100644 --- a/system/firewalld.py +++ b/system/firewalld.py @@ -99,7 +99,10 @@ try: from firewall.client import Rich_Rule from firewall.client import FirewallClient fw = FirewallClient() - HAS_FIREWALLD = True + if not fw.connected: + HAS_FIREWALLD = False + else: + HAS_FIREWALLD = True except ImportError: HAS_FIREWALLD = False