Skip to content

Commit

Permalink
fix indentation error
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hertel committed Apr 9, 2020
1 parent 64efa41 commit 2e485a0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/ansible/modules/net_tools/ldap/ldap_entry.py
Expand Up @@ -211,17 +211,17 @@ def main():
module.deprecate("The `params` option to ldap_attr will be removed in Ansible 2.10"
" since it circumvents Ansible's option handling", version='2.10')

# However, the bind_pw parameter contains a password so it **must** go through the normal
# argument parsing even though removing it breaks backwards compat.
if 'bind_pw' in module.params['params']:
module.fail_json(msg="Using `bind_pw` with the `params` option has been disallowed since"
" it is insecure. Use the `bind_pw` option directly. The `params`"
" option will be removed in Ansible-2.10")

# Update module parameters with user's parameters if defined
module.params.update(module.params['params'])
# Remove params itself
module.params.pop('params', None)
# However, the bind_pw parameter contains a password so it **must** go through the normal
# argument parsing even though removing it breaks backwards compat.
if 'bind_pw' in module.params['params']:
module.fail_json(msg="Using `bind_pw` with the `params` option has been disallowed since"
" it is insecure. Use the `bind_pw` option directly. The `params`"
" option will be removed in Ansible-2.10")

# Update module parameters with user's parameters if defined
module.params.update(module.params['params'])
# Remove params itself
module.params.pop('params', None)
else:
# For Ansible 2.10 and above
if module.params['params']:
Expand Down

0 comments on commit 2e485a0

Please sign in to comment.