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.
Co-authored-by: Stefano Rivera <stefano@rivera.za.net> When the requested module (e.g. ansible.module_utils.distro) - is provided by another module *e.g. distro) - that itself was a package (e.g. distro 1.7.0) At runtime - ansible/module_utils/distro/__init__.py executes - if https://pypi.org/project/distro/ is present, it's loaded as ansible.module_utils.distro - otherwise ansible/module_utils/distro/_distro.py is loaded ParentEnumerationMethod would wrongly use whatever was in sys.modules['ansible.module_utils.distro]. Instead we should ascend to the first parent that has fullname == sys.modules[fullname].__name__. Then descend to the appropriate .py file on disk. This bug didn't show up before because until distro 1.7.0 (Feb 2022) the top-level distro module was a module (distro.py) not a package (distro/__init__.py) fixes #906 |
4 years ago | |
|---|---|---|
| .. | ||
| compat | 7 years ago | |
| __init__.py | 4 years ago | |
| buildah.py | 7 years ago | |
| core.py | 4 years ago | |
| debug.py | 7 years ago | |
| doas.py | 7 years ago | |
| docker.py | 7 years ago | |
| fakessh.py | 7 years ago | |
| fork.py | 6 years ago | |
| jail.py | 7 years ago | |
| kubectl.py | 7 years ago | |
| lxc.py | 7 years ago | |
| lxd.py | 7 years ago | |
| master.py | 4 years ago | |
| minify.py | 7 years ago | |
| os_fork.py | 7 years ago | |
| parent.py | 4 years ago | |
| podman.py | 4 years ago | |
| profiler.py | 4 years ago | |
| select.py | 6 years ago | |
| service.py | 5 years ago | |
| setns.py | 7 years ago | |
| ssh.py | 5 years ago | |
| su.py | 7 years ago | |
| sudo.py | 6 years ago | |
| unix.py | 7 years ago | |
| utils.py | 7 years ago | |