mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
fixed issue where user option is internally transformed to username which is what /proc/mounts reports for cifs mounts
This commit is contained in:
parent
983d615d5e
commit
e8eb6fe6ff
@ -229,6 +229,9 @@ def mounted(name,
|
||||
if size_match.group('size_unit') == 'g':
|
||||
converted_size = int(size_match.group('size_value')) * 1024 * 1024
|
||||
opt = "size={0}k".format(converted_size)
|
||||
# make cifs option user synonym for option username which is reported by /proc/mounts
|
||||
if fstype in ['cifs'] and opt.split('=')[0] == 'user':
|
||||
opt = "username={0}".format(opt.split('=')[1])
|
||||
|
||||
if opt not in active[real_name]['opts'] \
|
||||
and opt not in active[real_name]['superopts'] \
|
||||
|
Loading…
Reference in New Issue
Block a user