mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-23 06:21:43 -07:00
This commit is contained in:
parent
20844c1ef6
commit
bdf1a087cb
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ def main():
|
||||||
if len(commands) < 1:
|
if len(commands) < 1:
|
||||||
module.fail_json(msg="Not any of the command arguments %s given" % commands)
|
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")
|
module.fail_json(msg="Direction must be specified when creating a rule on an interface")
|
||||||
|
|
||||||
# Ensure ufw is available
|
# Ensure ufw is available
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue