mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-26 22:47:49 +02:00
continue loop if minion not in mine
This commit is contained in:
@@ -71,6 +71,7 @@ def start(interval=60):
|
|||||||
log.error('checkmine engine: found minion %s is not in the mine' % (minion))
|
log.error('checkmine engine: found minion %s is not in the mine' % (minion))
|
||||||
mine_flush(minion)
|
mine_flush(minion)
|
||||||
mine_update(minion)
|
mine_update(minion)
|
||||||
|
continue
|
||||||
|
|
||||||
# Update the mine if the ip in the mine doesn't match returned from manage.alived
|
# 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')
|
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))
|
log.error('checkmine engine: found minion %s is not in the mine' % (minion))
|
||||||
mine_flush(minion)
|
mine_flush(minion)
|
||||||
mine_update(minion)
|
mine_update(minion)
|
||||||
|
|
||||||
sleep(interval)
|
sleep(interval)
|
||||||
|
|||||||
Reference in New Issue
Block a user