def revoke_auth(preserve_minion_cache=False):
 masters = list()
 ret = True
 if ('master_uri_list' in __opts__):
  for master_uri in __opts__['master_uri_list']:
   masters.append(master_uri)
 else:
  masters.append(__opts__['master_uri'])
 for master in masters:
  channel = salt.transport.Channel.factory(__opts__, master_uri=master)
  tok = channel.auth.gen_token('salt')
  load = {'cmd': 'revoke_auth', 'id': __opts__['id'], 'tok': tok, 'preserve_minion_cache': preserve_minion_cache}
  try:
   channel.send(load)
  except SaltReqTimeoutError:
   ret = False
 return ret

def revoke_auth ( preserve_minion_cache = False ) : masters = list ( ) ret = True if ( 'master_uri_list' in __opts__ ) : for master_uri in __opts__ [ 'master_uri_list' ] : masters . append ( master_uri ) else : masters . append ( __opts__ [ 'master_uri' ] ) for master in masters : channel = salt . transport . Channel . factory ( __opts__ , master_uri = master ) tok = channel . auth . gen_token ( 'salt' ) load = { 'cmd' : 'revoke_auth' , 'id' : __opts__ [ 'id' ] , 'tok' : tok , 'preserve_minion_cache' : preserve_minion_cache } try : channel . send ( load ) except SaltReqTimeoutError : ret = False return ret
the minion sends a request to the master to revoke its own key .