You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible/utils
Pilou 3d7f2a1366
Fix an exception when passlib library is used with a wrapped algo (#75527)
* Test a passlib wrapped algo with a password lookup

* Fix error when passlib is used with a wrapped algo

The exception was:

     An unhandled exception occurred while running the lookup plugin 'password'.
     Error was a <class 'TypeError'>, original message: issubclass() arg 1 must be a class

and can be reproduced using the following command:

    ansible localhost -i localhost, -mdebug -amsg="{{ lookup('password', '/dev/null encrypt=ldap_sha512_crypt') }}"

The concerned algo are: bsd_nthash, django_argon2, django_bcrypt, ldap_bcrypt,
ldap_bsdi_crypt, ldap_des_crypt, ldap_hex_md5, ldap_hex_sha1, ldap_md5_crypt,
ldap_pbkdf2_sha1, ldap_pbkdf2_sha256, ldap_pbkdf2_sha512, ldap_sha1_crypt,
ldap_sha256_crypt, ldap_sha512_crypt, roundup_plaintext
3 years ago
..
collection_loader ansible-test - Move code from _data to _util. (#75495) 3 years ago
__init__.py limit extensions for files in group/host_vars dir 9 years ago
cmd_functions.py ansible/utils/: PEP8 compliancy (#24686) 7 years ago
color.py Allow restricting config values to enumerated list (#73162) 4 years ago
context_objects.py Move the arguments module into cli/ and context_objects into utils 6 years ago
display.py Rename to ansible-core (#72594) 4 years ago
encrypt.py Fix an exception when passlib library is used with a wrapped algo (#75527) 3 years ago
fqcn.py Fix missing ansible.builtin FQCNs in hardcoded action names (#71824) 4 years ago
galaxy.py Add support to install collections from git repositories (#69154) 4 years ago
hashing.py Enable additional pylint rules and resolve issues found. (#47221) 6 years ago
helpers.py preserve same order as inventory manager when using host lookup (#55331) 6 years ago
jsonrpc.py Revert "Allow httpapi for EOS resource modules (#66871)" (#67131) 5 years ago
listify.py Reduce complexity of Templar._lookup slightly (#73277) 4 years ago
lock.py Allow callbacks from forks (#70501) 4 years ago
multiprocessing.py Explicitly use multiprocessing fork start method (#63581) 5 years ago
native_jinja.py Force template module to use non-native Jinja2 (#68560) 4 years ago
path.py fixed fetch traversal from slurp (#68720) 5 years ago
plugin_docs.py plugin attributes: make validate-modules strict again, improve version_added support (#74602) 3 years ago
py3compat.py config encode errors should not be fatal (#63311) 5 years ago
sentinel.py Fieldattribute inheritance with defaults (#50891) 6 years ago
shlex.py Update module_utils.six to latest (#22855) 8 years ago
singleton.py Add a Singleton metaclass, use it with Display (#48935) 6 years ago
ssh_functions.py finish migrating ssh plugin to config system (#73708) 4 years ago
unicode.py Code cleanup to prepare for pylint update. (#75475) 3 years ago
unsafe_proxy.py Force template module to use non-native Jinja2 (#68560) 4 years ago
vars.py Add 'hash_behaviour' option to include_vars module (#72944) 3 years ago
version.py Vendor `distutils.version` (#74644) 3 years ago