1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixes doc string in docker_volume (#27074)

This commit is contained in:
Chris Houseknecht 2017-07-19 15:42:31 -04:00 committed by GitHub
parent 96a0bdeac5
commit 2e073e73d2

View file

@ -44,9 +44,8 @@ options:
driver_options:
description:
- >
Dictionary of volume settings. Consult docker docs for valid options and values:
U(https://docs.docker.com/engine/reference/commandline/volume_create/#driver-specific-options)
- "Dictionary of volume settings. Consult docker docs for valid options and values:
U(https://docs.docker.com/engine/reference/commandline/volume_create/#driver-specific-options)"
labels:
description:
@ -55,8 +54,8 @@ options:
force:
description:
- With state C(present) causes the volume to be deleted and recreated if the volume already
exist and the driver, driver options or labels differ.
This will cause any data in the existing volume to be lost.
exist and the driver, driver options or labels differ. This will cause any data in the existing
volume to be lost.
type: bool
default: 'no'
@ -108,7 +107,13 @@ facts:
'''
from ansible.module_utils.six import iteritems, text_type
from ansible.module_utils.docker_common import DockerBaseClass, AnsibleDockerClient, APIError
from ansible.module_utils.docker_common import DockerBaseClass, AnsibleDockerClient
try:
from docker.errors import APIError
except:
# missing docker-py handled in ansible.module_utils.docker
pass
class TaskParameters(DockerBaseClass):