mount state: unmount by device is optional

Fixes #29140.
This commit is contained in:
Justin Findlay 2015-11-25 10:25:19 -07:00
parent 0c0e15d4e9
commit b54de47b1b

View File

@ -530,7 +530,7 @@ def swap(name, persist=True, config='/etc/fstab'):
def unmounted(name,
device,
device=None,
config='/etc/fstab',
persist=False,
user=None):
@ -542,10 +542,11 @@ def unmounted(name,
name
The path to the location where the device is to be unmounted from
.. versionadded:: 2015.5.0
device
The device to be unmounted.
The device to be unmounted. This is optional because the device could
be mounted in multiple places.
.. versionadded:: 2015.5.0
config
Set an alternative location for the fstab, Default is ``/etc/fstab``