mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove ldap_entry's params option completely (#2257)
* Remove ldap_entry's params option completely. * Regular sanity error fixing.
This commit is contained in:
parent
f9e3e229dd
commit
721589827e
6 changed files with 3 additions and 19 deletions
2
changelogs/fragments/2257-ldap_entry-params.yml
Normal file
2
changelogs/fragments/2257-ldap_entry-params.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
removed_features:
|
||||
- "ldap_entry - the ``params`` parameter is now completely removed. Using it already triggered an error since community.general 0.1.2 (https://github.com/ansible-collections/community.general/pull/2257)."
|
|
@ -25,9 +25,6 @@ notes:
|
|||
rule allowing root to modify the server configuration. If you need to use
|
||||
a simple bind to access your server, pass the credentials in I(bind_dn)
|
||||
and I(bind_pw).
|
||||
- "The I(params) parameter was removed due to circumventing Ansible's parameter
|
||||
handling. The I(params) parameter started disallowing setting the I(bind_pw) parameter in
|
||||
Ansible-2.7 as it was insecure to set the parameter that way."
|
||||
author:
|
||||
- Jiri Tyr (@jtyr)
|
||||
requirements:
|
||||
|
@ -51,6 +48,7 @@ options:
|
|||
- The target state of the entry.
|
||||
choices: [present, absent]
|
||||
default: present
|
||||
type: str
|
||||
extends_documentation_fragment:
|
||||
- community.general.ldap.documentation
|
||||
|
||||
|
@ -187,7 +185,6 @@ def main():
|
|||
argument_spec=gen_specs(
|
||||
attributes=dict(default={}, type='dict'),
|
||||
objectClass=dict(type='list', elements='str'),
|
||||
params=dict(type='dict'),
|
||||
state=dict(default='present', choices=['present', 'absent']),
|
||||
),
|
||||
required_if=[('state', 'present', ['objectClass'])],
|
||||
|
@ -198,9 +195,6 @@ def main():
|
|||
module.fail_json(msg=missing_required_lib('python-ldap'),
|
||||
exception=LDAP_IMP_ERR)
|
||||
|
||||
if module.params['params']:
|
||||
module.fail_json(msg="The `params` option to ldap_entry was removed since it circumvents Ansible's option handling")
|
||||
|
||||
state = module.params['state']
|
||||
|
||||
# Instantiate the LdapEntry object
|
||||
|
|
|
@ -37,9 +37,6 @@ plugins/modules/cloud/univention/udm_user.py validate-modules:parameter-list-no-
|
|||
plugins/modules/clustering/consul/consul.py validate-modules:doc-missing-type
|
||||
plugins/modules/clustering/consul/consul.py validate-modules:undocumented-parameter
|
||||
plugins/modules/clustering/consul/consul_session.py validate-modules:parameter-state-invalid-choice
|
||||
plugins/modules/net_tools/ldap/ldap_entry.py validate-modules:doc-missing-type
|
||||
plugins/modules/net_tools/ldap/ldap_entry.py validate-modules:parameter-type-not-in-doc
|
||||
plugins/modules/net_tools/ldap/ldap_entry.py validate-modules:undocumented-parameter # Parameter removed but reason for removal is shown by custom code
|
||||
plugins/modules/notification/grove.py validate-modules:invalid-argument-name
|
||||
plugins/modules/packaging/language/composer.py validate-modules:parameter-invalid
|
||||
plugins/modules/packaging/os/apt_rpm.py validate-modules:parameter-invalid
|
||||
|
|
|
@ -36,9 +36,6 @@ plugins/modules/cloud/univention/udm_user.py validate-modules:parameter-list-no-
|
|||
plugins/modules/clustering/consul/consul.py validate-modules:doc-missing-type
|
||||
plugins/modules/clustering/consul/consul.py validate-modules:undocumented-parameter
|
||||
plugins/modules/clustering/consul/consul_session.py validate-modules:parameter-state-invalid-choice
|
||||
plugins/modules/net_tools/ldap/ldap_entry.py validate-modules:doc-missing-type
|
||||
plugins/modules/net_tools/ldap/ldap_entry.py validate-modules:parameter-type-not-in-doc
|
||||
plugins/modules/net_tools/ldap/ldap_entry.py validate-modules:undocumented-parameter # Parameter removed but reason for removal is shown by custom code
|
||||
plugins/modules/notification/grove.py validate-modules:invalid-argument-name
|
||||
plugins/modules/packaging/language/composer.py validate-modules:parameter-invalid
|
||||
plugins/modules/packaging/os/apt_rpm.py validate-modules:parameter-invalid
|
||||
|
|
|
@ -36,9 +36,6 @@ plugins/modules/cloud/univention/udm_user.py validate-modules:parameter-list-no-
|
|||
plugins/modules/clustering/consul/consul.py validate-modules:doc-missing-type
|
||||
plugins/modules/clustering/consul/consul.py validate-modules:undocumented-parameter
|
||||
plugins/modules/clustering/consul/consul_session.py validate-modules:parameter-state-invalid-choice
|
||||
plugins/modules/net_tools/ldap/ldap_entry.py validate-modules:doc-missing-type
|
||||
plugins/modules/net_tools/ldap/ldap_entry.py validate-modules:parameter-type-not-in-doc
|
||||
plugins/modules/net_tools/ldap/ldap_entry.py validate-modules:undocumented-parameter # Parameter removed but reason for removal is shown by custom code
|
||||
plugins/modules/notification/grove.py validate-modules:invalid-argument-name
|
||||
plugins/modules/packaging/language/composer.py validate-modules:parameter-invalid
|
||||
plugins/modules/packaging/os/apt_rpm.py validate-modules:parameter-invalid
|
||||
|
|
|
@ -28,9 +28,6 @@ plugins/modules/cloud/univention/udm_dns_zone.py validate-modules:parameter-type
|
|||
plugins/modules/cloud/univention/udm_dns_zone.py validate-modules:undocumented-parameter
|
||||
plugins/modules/clustering/consul/consul.py validate-modules:doc-missing-type
|
||||
plugins/modules/clustering/consul/consul.py validate-modules:undocumented-parameter
|
||||
plugins/modules/net_tools/ldap/ldap_entry.py validate-modules:doc-missing-type
|
||||
plugins/modules/net_tools/ldap/ldap_entry.py validate-modules:parameter-type-not-in-doc
|
||||
plugins/modules/net_tools/ldap/ldap_entry.py validate-modules:undocumented-parameter # Parameter removed but reason for removal is shown by custom code
|
||||
plugins/modules/packaging/language/composer.py validate-modules:parameter-invalid
|
||||
plugins/modules/packaging/os/apt_rpm.py validate-modules:parameter-invalid
|
||||
plugins/modules/packaging/os/homebrew.py validate-modules:parameter-invalid
|
||||
|
|
Loading…
Reference in a new issue