fix an issue where thorium would remove keys of reattaching minions

This commit is contained in:
Thomas S Hatch 2017-01-25 15:30:56 -07:00
parent d906e8fadb
commit 13d28a34a6

View File

@ -71,6 +71,22 @@ def timeout(name, delete=0, reject=0):
reject_set.add(id_)
for id_ in remove:
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:
keyapi.reject(id_)
try:
__reg__['status']['val'].pop(id_)
except KeyError:
pass
try:
__context__[ktr].pop(id_)
except KeyError:
pass
return ret