Fix remove possible trailing slash in name of mounted state

This commit is contained in:
steak 2013-10-15 07:47:27 +02:00
parent bb913dad72
commit 72723c0548

View File

@ -77,6 +77,9 @@ def mounted(name,
elif opts is None:
opts = ['defaults']
# remove possible trailing slash
name = name.rstrip("/")
# Get the active data
active = __salt__['mount.active']()
if name in active: