Merge pull request #1133 from lightblu/devel

Check to make sure the firewalld client is connected before proceeding
This commit is contained in:
Brian Coca 2016-01-18 20:51:58 -05:00
commit 174bef08ae

View file

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