mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Fix remove possible trailing slash in name of mounted state
This commit is contained in:
parent
bb913dad72
commit
72723c0548
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user