From bdf1a087cb5502de909769b5ff17bd0994d99ae1 Mon Sep 17 00:00:00 2001 From: ovcharenko Date: Sat, 6 Aug 2016 15:39:03 +0300 Subject: [PATCH] Bug report: ufw: interface option causes an error (1.9.4) (#1491) (#2668) --- lib/ansible/modules/extras/system/ufw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/system/ufw.py b/lib/ansible/modules/extras/system/ufw.py index 89376e7c22e..6b7fb6a7657 100644 --- a/lib/ansible/modules/extras/system/ufw.py +++ b/lib/ansible/modules/extras/system/ufw.py @@ -225,7 +225,7 @@ def main(): if len(commands) < 1: module.fail_json(msg="Not any of the command arguments %s given" % commands) - if('interface' in params and 'direction' not in params): + if('interface' in params and params['direction'] is None): module.fail_json(msg="Direction must be specified when creating a rule on an interface") # Ensure ufw is available