community.general/lib/ansible/modules/cloud/docker
Vince v. Oosten 42a38f9141 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.
2016-12-08 11:24:36 -05:00
..
__init__.py added __init__.py to new cloud subcategories so builds work again 2016-12-08 11:22:25 -05:00
_docker.py move environment variable gathering to end of __init__() (#3890) 2016-12-08 11:24:36 -05:00
docker_container.py Fix issue #3866 2016-12-08 11:24:35 -05:00
docker_image.py Fail gracefully when build path is not found. 2016-12-08 11:24:27 -05:00
docker_image_facts.py Fixing Docker compile time errors irt exception handling for Python 3 2016-12-08 11:24:34 -05:00
docker_login.py Fixing Docker compile time errors irt exception handling for Python 3 2016-12-08 11:24:34 -05:00
docker_service.py Fix for issue 3740. Make docker_service more resilient when targeting older API versions. 2016-12-08 11:24:31 -05:00