mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #39593 from zwo-bot/fix-issue-#27160
Fix issue #27160 - escape whitespaces in fstab entry in module mount when persist=True
This commit is contained in:
commit
89635b4467
@ -82,7 +82,7 @@ def _active_mountinfo(ret):
|
||||
'root': comps[3],
|
||||
'opts': _resolve_user_group_names(comps[5].split(',')),
|
||||
'fstype': comps[_sep + 1],
|
||||
'device': device_name,
|
||||
'device': device_name.replace('\\040', '\\ '),
|
||||
'alt_device': _list.get(comps[4], None),
|
||||
'superopts': _resolve_user_group_names(comps[_sep + 3].split(',')),
|
||||
'device_uuid': device_uuid,
|
||||
@ -539,7 +539,7 @@ def set_fstab(
|
||||
# preserve arguments for updating
|
||||
entry_args = {
|
||||
'name': name,
|
||||
'device': device,
|
||||
'device': device.replace('\\ ', '\\040'),
|
||||
'fstype': fstype,
|
||||
'opts': opts,
|
||||
'dump': dump,
|
||||
|
Loading…
Reference in New Issue
Block a user