From e986aad9aa52af3ff3ce78d93c20f9212b65a806 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 12 Apr 2016 08:13:24 +0200 Subject: [PATCH] Remove dead code (#1303) The review on https://github.com/ansible/ansible-modules-extras/pull/1303 show the problem was already fixed, so we just need to remove the code. --- lib/ansible/modules/extras/system/firewalld.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/ansible/modules/extras/system/firewalld.py b/lib/ansible/modules/extras/system/firewalld.py index 6588e8e683..391d22ea8e 100644 --- a/lib/ansible/modules/extras/system/firewalld.py +++ b/lib/ansible/modules/extras/system/firewalld.py @@ -326,14 +326,6 @@ def main(): timeout = module.params['timeout'] interface = module.params['interface'] - ## Check for firewalld running - try: - if fw.connected == False: - module.fail_json(msg='firewalld service must be running') - except AttributeError: - module.fail_json(msg="firewalld connection can't be established,\ - version likely too old. Requires firewalld >= 2.0.11") - modification_count = 0 if service != None: modification_count += 1