Set a default value for DEFAULT_DOCKER_API_VERSION so we can create the AnsibleModule without docker-py

reviewable/pr18780/r1
Toshio Kuratomi 9 years ago
parent d10f3f7a7e
commit 1001eae3c8

@ -137,6 +137,7 @@ try:
except ImportError: except ImportError:
HAS_DOCKER_CLIENT = False HAS_DOCKER_CLIENT = False
DEFAULT_DOCKER_API_VERSION = None
if HAS_DOCKER_CLIENT: if HAS_DOCKER_CLIENT:
try: try:
from docker.errors import APIError as DockerAPIError from docker.errors import APIError as DockerAPIError

Loading…
Cancel
Save