From 849b94ed73d07fc0cbcd631bf77065fb57f5ca36 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Tue, 2 Feb 2016 18:27:41 -0500 Subject: [PATCH] document the behavior if the driver is unspecified --- salt/states/dockerng.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/salt/states/dockerng.py b/salt/states/dockerng.py index bad7913d1d..b6278bbb90 100644 --- a/salt/states/dockerng.py +++ b/salt/states/dockerng.py @@ -2091,7 +2091,13 @@ def volume_present(name, driver=None, driver_opts=None): Name of the volume driver - Type of driver for that volume. + Type of driver for that volume. If ``None`` and the volume + does not yet exist, the volume will be created using Docker's + default driver. If ``None`` and the volume does exist, this + function does nothing, even if the existing volume's driver is + not the Docker default driver. (To ensure that an existing + volume's driver matches the Docker default, you must + explicitly name Docker's default driver here.) driver_opts Option for tha volume driver