From 9400fca23c618c77c2d5af91947012bfef7b6f29 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Mon, 25 Nov 2024 13:43:47 +0100 Subject: [PATCH] Repair fstab_present test mode Return no pending changes if the configuration already matches. Signed-off-by: Georg Pfuetzenreuter --- changelog/67065.fixed.md | 1 + salt/states/mount.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog/67065.fixed.md diff --git a/changelog/67065.fixed.md b/changelog/67065.fixed.md new file mode 100644 index 000000000000..7b210dc297dc --- /dev/null +++ b/changelog/67065.fixed.md @@ -0,0 +1 @@ +Repaired mount.fstab_present always returning pending changes diff --git a/salt/states/mount.py b/salt/states/mount.py index 560ccc39ae6d..6b56290ec0f1 100644 --- a/salt/states/mount.py +++ b/salt/states/mount.py @@ -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))