Merge pull request #1133 from lightblu/devel

Check to make sure the firewalld client is connected before proceeding
reviewable/pr18780/r1
Brian Coca 9 years ago
commit 174bef08ae

@ -99,6 +99,9 @@ try:
from firewall.client import Rich_Rule from firewall.client import Rich_Rule
from firewall.client import FirewallClient from firewall.client import FirewallClient
fw = FirewallClient() fw = FirewallClient()
if not fw.connected:
HAS_FIREWALLD = False
else:
HAS_FIREWALLD = True HAS_FIREWALLD = True
except ImportError: except ImportError:
HAS_FIREWALLD = False HAS_FIREWALLD = False

Loading…
Cancel
Save