def regen_keys():
 for fn_ in os.listdir(__opts__['pki_dir']):
  path = os.path.join(__opts__['pki_dir'], fn_)
  try:
   os.remove(path)
  except os.error:
   pass
 channel = salt.transport.Channel.factory(__opts__)

def regen_keys ( ) : for fn_ in os . listdir ( __opts__ [ 'pki_dir' ] ) : path = os . path . join ( __opts__ [ 'pki_dir' ] , fn_ ) try : os . remove ( path ) except os . error : pass channel = salt . transport . Channel . factory ( __opts__ )
used to regenerate the minion keys .