From 6d77b1e4c389a90ae475e2e523e302572fdf244b Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Fri, 20 Oct 2023 13:41:53 -0400 Subject: [PATCH] continue loop if minion not in mine --- salt/salt/engines/master/checkmine.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/salt/salt/engines/master/checkmine.py b/salt/salt/engines/master/checkmine.py index afeb92536..f33392575 100644 --- a/salt/salt/engines/master/checkmine.py +++ b/salt/salt/engines/master/checkmine.py @@ -71,6 +71,7 @@ def start(interval=60): log.error('checkmine engine: found minion %s is not in the mine' % (minion)) mine_flush(minion) mine_update(minion) + continue # Update the mine if the ip in the mine doesn't match returned from manage.alived network_ip_addrs = __salt__['saltutil.runner']('mine.get', tgt=minion, fun='network.ip_addrs') @@ -85,4 +86,5 @@ def start(interval=60): log.error('checkmine engine: found minion %s is not in the mine' % (minion)) mine_flush(minion) mine_update(minion) + sleep(interval)