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/cloud/docker
Vince v. Oosten fd418c19c2 move environment variable gathering to end of __init__() (#3890)
* 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.
8 years ago
..
__init__.py added __init__.py to new cloud subcategories so builds work again 10 years ago
_docker.py move environment variable gathering to end of __init__() (#3890) 8 years ago
docker_container.py Fix issue #3866 8 years ago
docker_image.py Fail gracefully when build path is not found. 8 years ago
docker_image_facts.py Fixing Docker compile time errors irt exception handling for Python 3 8 years ago
docker_login.py Fixing Docker compile time errors irt exception handling for Python 3 8 years ago
docker_service.py Fix for issue 3740. Make docker_service more resilient when targeting older API versions. 8 years ago