mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Bug 42787 create volume with label (#46527)
* add None value to docker-version so it can be mocked in tests
This commit is contained in:
parent
a858089eb2
commit
c062f37984
2 changed files with 33 additions and 0 deletions
|
@ -103,6 +103,8 @@ BYTE_SUFFIXES = ['B', 'KB', 'MB', 'GB', 'TB', 'PB']
|
|||
|
||||
|
||||
if not HAS_DOCKER_PY:
|
||||
docker_version = None
|
||||
|
||||
# No docker-py. Create a place holder client to allow
|
||||
# instantiation of AnsibleModule and proper error handing
|
||||
class Client(object): # noqa: F811
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue