Skip to content

Commit

Permalink
Repair fstab_present test mode
Browse files Browse the repository at this point in the history
Return no pending changes if the configuration already matches.

Signed-off-by: Georg Pfuetzenreuter <[email protected]>
  • Loading branch information
tacerus committed Nov 25, 2024
1 parent 9233e1c commit 9400fca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/67065.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Repaired mount.fstab_present always returning pending changes
1 change: 1 addition & 0 deletions salt/states/mount.py
Original file line number Diff line number Diff line change
Expand Up @@ -1266,6 +1266,7 @@ def fstab_present(
if out == "present":
msg = "{} entry is already in {}."
ret["comment"].append(msg.format(fs_file, config))
ret["result"] = True
elif out == "new":
msg = "{} entry will be written in {}."
ret["comment"].append(msg.format(fs_file, config))
Expand Down

0 comments on commit 9400fca

Please sign in to comment.