Skip to content

Commit 31a027e

Browse files
ovcharenkoresmo
authored andcommitted
[FIX] Bug report: ufw: interface option causes an error (1.9.4) (ansible#1491) (ansible#2668)
1 parent 2d992fe commit 31a027e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/ufw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def execute(cmd):
225225
if len(commands) < 1:
226226
module.fail_json(msg="Not any of the command arguments %s given" % commands)
227227

228-
if('interface' in params and 'direction' not in params):
228+
if('interface' in params and params['direction'] is None):
229229
module.fail_json(msg="Direction must be specified when creating a rule on an interface")
230230

231231
# Ensure ufw is available

0 commit comments

Comments
 (0)