mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
firewalld: fix AttributeError (#38442)
Error was: File "/tmp/ansible_qY_BMb/ansible_module_firewalld.py", line 703, in <module> main() File "/tmp/ansible_qY_BMb/ansible_module_firewalld.py", line 548, in main module.fail(msg='firewall is not currently running, unable to perform immediate actions without a running firewall daemon') AttributeError: 'AnsibleModule' object has no attribute 'fail'
This commit is contained in:
parent
34260cb4e6
commit
db80504839
1 changed files with 1 additions and 1 deletions
|
@ -829,7 +829,7 @@ def main():
|
|||
|
||||
# Verify required params are provided
|
||||
if immediate and fw_offline:
|
||||
module.fail(msg='firewall is not currently running, unable to perform immediate actions without a running firewall daemon')
|
||||
module.fail_json(msg='firewall is not currently running, unable to perform immediate actions without a running firewall daemon')
|
||||
|
||||
changed = False
|
||||
msgs = []
|
||||
|
|
Loading…
Reference in a new issue