From dc3ca99c12e56c756cbee4998b962dd4410c8004 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Fri, 20 Oct 2023 17:16:33 -0400 Subject: [PATCH] ask the minion if it can see itself in the mine --- salt/manager/tools/sbin/so-minion | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/salt/manager/tools/sbin/so-minion b/salt/manager/tools/sbin/so-minion index f92c0ff55..eca96da5c 100755 --- a/salt/manager/tools/sbin/so-minion +++ b/salt/manager/tools/sbin/so-minion @@ -407,8 +407,9 @@ function update_logstash_outputs() { } function checkMine() { - func = $1 - retry 20 1 "salt-run '$MINION_ID' mine.get '$func'" "$MINION_ID" + local func=$1 + # make sure the minion sees itself in the mine since it needs to see itself for states as opposed to using salt-run + retry 20 1 "salt '$MINION_ID' mine.get '\*' '$func'" "$MINION_ID" }