mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Handle spaces in fstab opts, similar fix to #39593
This commit is contained in:
parent
26008ef26c
commit
89345eb1ab
1 changed files with 2 additions and 1 deletions
|
@ -226,6 +226,7 @@ def _resolve_user_group_names(opts):
|
|||
if _info and _param in _info:
|
||||
_id = _info[_param]
|
||||
opts[ind] = _param + '=' + six.text_type(_id)
|
||||
opts[ind] = opts[ind].replace('\\040', '\\ ')
|
||||
return opts
|
||||
|
||||
|
||||
|
@ -727,7 +728,7 @@ def set_fstab(
|
|||
'name': name,
|
||||
'device': device.replace('\\ ', '\\040'),
|
||||
'fstype': fstype,
|
||||
'opts': opts,
|
||||
'opts': opts.replace('\\ ', '\\040'),
|
||||
'dump': dump,
|
||||
'pass_num': pass_num,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue