[BUG] mount.mounted options are order specific for persist #62556
Labels
Bug
broken, incorrect, or confusing behavior
severity-low
4th level, cosemtic problems, work around exists
Description
Similar to (but not the same as) #19003 and #55769
Essentially, mount options provided to the state are natural sort ordered and expected to be in that order in the persisted mount file (such as
/etc/fstab
). This is problematic for writing states to take over management of existing mounts because a state cannot be written in a way that will run "clean" if the options order is not sorted in fstab.Setup
Running this state shows that changes will be made even though the mount is present with all options present:
Expected behavior
I would expect that the options would be compared irrespective of order, since order of the options is not important to mount.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: