mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* Allow ldap search to run in check mode always
* Fix indentions
* Remove Comments and Chg Fragment
* Update changelogs/fragments/3667-ldap_search.yml
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Sebastian Trupiano <sebastian.trupiano@srpnet.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
(cherry picked from commit 115d435d2d
)
Co-authored-by: sabman3 <sabman3@aol.com>
This commit is contained in:
parent
227f6e333e
commit
b3ddec2b29
2 changed files with 6 additions and 5 deletions
2
changelogs/fragments/3667-ldap_search.yml
Normal file
2
changelogs/fragments/3667-ldap_search.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- ldap_search - allow it to be used even in check mode (https://github.com/ansible-collections/community.general/issues/3619).
|
|
@ -106,7 +106,6 @@ def main():
|
||||||
module.fail_json(msg=missing_required_lib('python-ldap'),
|
module.fail_json(msg=missing_required_lib('python-ldap'),
|
||||||
exception=LDAP_IMP_ERR)
|
exception=LDAP_IMP_ERR)
|
||||||
|
|
||||||
if not module.check_mode:
|
|
||||||
try:
|
try:
|
||||||
LdapSearch(module).main()
|
LdapSearch(module).main()
|
||||||
except Exception as exception:
|
except Exception as exception:
|
||||||
|
|
Loading…
Reference in a new issue