We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d992fe commit 31a027eCopy full SHA for 31a027e
system/ufw.py
@@ -225,7 +225,7 @@ def execute(cmd):
225
if len(commands) < 1:
226
module.fail_json(msg="Not any of the command arguments %s given" % commands)
227
228
- if('interface' in params and 'direction' not in params):
+ if('interface' in params and params['direction'] is None):
229
module.fail_json(msg="Direction must be specified when creating a rule on an interface")
230
231
# Ensure ufw is available
0 commit comments