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 (#3667)
* 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>
This commit is contained in:
parent
4fe5d54b9e
commit
115d435d2d
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'),
|
||||
exception=LDAP_IMP_ERR)
|
||||
|
||||
if not module.check_mode:
|
||||
try:
|
||||
LdapSearch(module).main()
|
||||
except Exception as exception:
|
||||
|
|
Loading…
Reference in a new issue