From 13a8f691532e77862c2e2bdaecd7c5ddc569a1ac Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Tue, 10 Oct 2023 15:25:22 +0100 Subject: [PATCH] Fix bug from 2017, by removing unwanted comma. https://github.com/saltstack/salt/commit/fda41ede76f7f2b3cc7de45b5724f053016663a6#diff-f6c5d53219e55de2e0d3321b81d1041965330dfd79f2f9eecb269df8ba829611R719 Signed-off-by: Pedro Algarvio --- changelog/65372.fixed.md | 1 + salt/states/saltmod.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog/65372.fixed.md diff --git a/changelog/65372.fixed.md b/changelog/65372.fixed.md new file mode 100644 index 00000000000..3ccf3d6578e --- /dev/null +++ b/changelog/65372.fixed.md @@ -0,0 +1 @@ +Test mode for state function `saltmod.wheel` no longer set's `result` to `(None,)` diff --git a/salt/states/saltmod.py b/salt/states/saltmod.py index 7b908c155e9..1f30d0fa38a 100644 --- a/salt/states/saltmod.py +++ b/salt/states/saltmod.py @@ -1041,7 +1041,7 @@ def wheel(name, **kwargs): jid = None if __opts__.get("test", False): - ret["result"] = (None,) + ret["result"] = None ret["changes"] = {} ret["comment"] = "Wheel function '{}' would be executed.".format(name) return ret