mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
Set a default value for DEFAULT_DOCKER_API_VERSION so we can create the AnsibleModule without docker-py
This commit is contained in:
parent
7027de77b7
commit
98e600961f
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue