Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Second try at fixing #1227 -- set e default value earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
abadger committed May 1, 2015
1 parent 4878733 commit 97af895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloud/docker/docker.py
Expand Up @@ -560,7 +560,7 @@ def __init__(self, module):
else:
docker_url = 'unix://var/run/docker.sock'

docker_api_version = module.params.get('docker_api_version', DEFAULT_DOCKER_API_VERSION)
docker_api_version = module.params.get('docker_api_version')

tls_client_cert = module.params.get('tls_client_cert', None)
if not tls_client_cert and env_cert_path:
Expand Down Expand Up @@ -1420,7 +1420,7 @@ def main():
tls_client_key = dict(required=False, default=None, type='str'),
tls_ca_cert = dict(required=False, default=None, type='str'),
tls_hostname = dict(required=False, type='str', default=None),
docker_api_version = dict(),
docker_api_version = dict(required=False, default=DEFAULT_DOCKER_API_VERSION, type='str'),
username = dict(default=None),
password = dict(),
email = dict(),
Expand Down

0 comments on commit 97af895

Please sign in to comment.