ansible/cloud
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.
2016-06-08 09:39:34 -04:00
..
amazon Iam trust policy (#3885) 2016-06-08 09:23:55 -04:00
azure Fix 3857 name regex 2016-06-03 07:53:55 -04:00
digital_ocean Fixing compile time error exception handling for python 3. (#3843) 2016-06-02 14:51:35 -07:00
docker move environment variable gathering to end of __init__() (#3890) 2016-06-08 09:39:34 -04:00
google correct gs_storage docs to match reality 2016-06-03 10:42:51 -07:00
linode Py3 exclude list (#3698) 2016-05-19 15:34:59 -07:00
openstack Fixing open stack compile time errors irt exception handling for Python 3 (#3848) 2016-06-03 06:37:09 -07:00
rackspace Fixing Rackspace compile time errors irt exception handling for Python 3 (#3849) 2016-06-03 06:39:58 -07:00
vmware Port vsphere_guest to py3/py2.4 syntax (#3721) 2016-05-23 09:36:24 -04:00
__init__.py