1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Bug report: ufw: interface option causes an error (1.9.4) (#1491) (#2668)

This commit is contained in:
ovcharenko 2016-08-06 15:39:03 +03:00 committed by Matt Clay
parent 20844c1ef6
commit bdf1a087cb

View file

@ -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