mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 15:34:01 -07:00
* This moves the lines in the code that parse the `env` and `env_file` options for docker to the end of the `__init__()` function. This is needed because the `_check_capabilites` function needs both a working `self.client` and a proper `self.docker_py_versioninfo`. `_check_capabilities` is used by `ensure_capabilities` which is, in turn, used by `get_environment` This means that before this commit, the environment variables could not be loaded because both `self.client` and `self.docker_py_versioninfo` were not set at that time. This commit fixes that by putting the environment variable parsing after those two. * This moves the lines in the code that parse the `env` and `env_file` options for docker to the end of the `__init__()` function. This is needed because the `_check_capabilites` function needs both a working `self.client` and a proper `self.docker_py_versioninfo`. `_check_capabilities` is used by `ensure_capabilities` which is, in turn, used by `get_environment` This means that before this commit, the environment variables could not be loaded because both `self.client` and `self.docker_py_versioninfo` were not set at that time. This commit fixes that by putting the environment variable parsing after those two. |
||
---|---|---|
.. | ||
cli | ||
compat | ||
config | ||
errors | ||
executor | ||
galaxy | ||
inventory | ||
module_utils | ||
modules | ||
parsing | ||
playbook | ||
plugins | ||
template | ||
utils | ||
vars | ||
__init__.py | ||
constants.py | ||
release.py | ||
test-requirements.txt |