mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix #1809, use the proper method to fail
This commit is contained in:
parent
9c883f689d
commit
61bdf9ee0f
1 changed files with 2 additions and 0 deletions
|
@ -257,6 +257,8 @@ def main():
|
|||
),
|
||||
supports_check_mode=True
|
||||
)
|
||||
if module.params['source'] == None and module.params['permanent'] == None:
|
||||
module.fail_json(msg='permanent is a required parameter')
|
||||
|
||||
if not HAS_FIREWALLD:
|
||||
module.fail_json(msg='firewalld and its python 2 module are required for this module')
|
||||
|
|
Loading…
Reference in a new issue