mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Promulgate house's fix for docker_volume to docker_secret
* Revert change to docker_common as it's not as good as the try: except fix * limit docker_volume fix to ImportErrors * fix docker_secret i nthe same way * Remove docker_secret from import tests
This commit is contained in:
@@ -145,8 +145,15 @@ secret_id:
|
||||
'''
|
||||
|
||||
import hashlib
|
||||
|
||||
try:
|
||||
from docker.errors import APIError
|
||||
except ImportError:
|
||||
# missing docker-py handled in ansible.module_utils.docker
|
||||
pass
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.docker_common import AnsibleDockerClient, DockerBaseClass, APIError
|
||||
from ansible.module_utils.docker_common import AnsibleDockerClient, DockerBaseClass
|
||||
from ansible.module_utils._text import to_native, to_bytes
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user