mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
fix an issue where thorium would remove keys of reattaching minions
This commit is contained in:
parent
d906e8fadb
commit
13d28a34a6
@ -71,6 +71,22 @@ def timeout(name, delete=0, reject=0):
|
|||||||
reject_set.add(id_)
|
reject_set.add(id_)
|
||||||
for id_ in remove:
|
for id_ in remove:
|
||||||
keyapi.delete_key(id_)
|
keyapi.delete_key(id_)
|
||||||
|
try:
|
||||||
|
__reg__['status']['val'].pop(id_)
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
try:
|
||||||
|
__context__[ktr].pop(id_)
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
for id_ in reject_set:
|
for id_ in reject_set:
|
||||||
keyapi.reject(id_)
|
keyapi.reject(id_)
|
||||||
|
try:
|
||||||
|
__reg__['status']['val'].pop(id_)
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
try:
|
||||||
|
__context__[ktr].pop(id_)
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
Reference in New Issue
Block a user