mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix error message when using the params option (#42305)
This commit is contained in:
committed by
Abhijeet Kasurde
parent
c93d9e8ea1
commit
2762c4fe1a
@@ -613,8 +613,7 @@ def main():
|
||||
# Params was removed
|
||||
# https://meetbot.fedoraproject.org/ansible-meeting/2017-09-28/ansible_dev_meeting.2017-09-28-15.00.log.html
|
||||
if module.params['params']:
|
||||
module.fail_json(msg="The params option to yum_repository was removed in Ansible 2.5"
|
||||
"since it circumvents Ansible's option handling")
|
||||
module.fail_json(msg="The params option to yum_repository was removed in Ansible 2.5 since it circumvents Ansible's option handling")
|
||||
|
||||
name = module.params['name']
|
||||
state = module.params['state']
|
||||
|
||||
@@ -734,8 +734,7 @@ def main():
|
||||
# Params was removed
|
||||
# https://meetbot.fedoraproject.org/ansible-meeting/2017-09-28/ansible_dev_meeting.2017-09-28-15.00.log.html
|
||||
if module.params['params']:
|
||||
module.fail_json(msg="The params option to jenkins_plugin was removed in Ansible 2.5"
|
||||
"since it circumvents Ansible's option handling")
|
||||
module.fail_json(msg="The params option to jenkins_plugin was removed in Ansible 2.5 since it circumvents Ansible's option handling")
|
||||
|
||||
# Force basic authentication
|
||||
module.params['force_basic_auth'] = True
|
||||
|
||||
Reference in New Issue
Block a user