def _cache_id(minion_id, cache_file):
 try:
  with salt.utils.fopen(cache_file, 'w') as idf:
   idf.write(minion_id)
 except (IOError, OSError) as exc:
  log.error('Could not cache minion ID: {0}'.format(exc))

def _cache_id ( minion_id , cache_file ) : try : with salt . utils . fopen ( cache_file , 'w' ) as idf : idf . write ( minion_id ) except ( IOError , OSError ) as exc : log . error ( 'Could not cache minion ID: {0}' . format ( exc ) )
helper function .