From 98e600961fb3cecfe0bf5159686a16430d1cf2c0 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 3 Aug 2015 08:44:48 -0700 Subject: [PATCH] Set a default value for DEFAULT_DOCKER_API_VERSION so we can create the AnsibleModule without docker-py --- lib/ansible/modules/cloud/docker/docker_image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/cloud/docker/docker_image.py b/lib/ansible/modules/cloud/docker/docker_image.py index 09fc61e6b08..e6cfd87ab43 100644 --- a/lib/ansible/modules/cloud/docker/docker_image.py +++ b/lib/ansible/modules/cloud/docker/docker_image.py @@ -137,6 +137,7 @@ try: except ImportError: HAS_DOCKER_CLIENT = False +DEFAULT_DOCKER_API_VERSION = None if HAS_DOCKER_CLIENT: try: from docker.errors import APIError as DockerAPIError