def _get_or_create_hostfile():
 hfn = __get_hosts_filename()
 if (hfn is None):
  hfn = ''
 if (not os.path.exists(hfn)):
  with salt.utils.fopen(hfn, 'w'):
   pass
 return hfn

def _get_or_create_hostfile ( ) : hfn = __get_hosts_filename ( ) if ( hfn is None ) : hfn = '' if ( not os . path . exists ( hfn ) ) : with salt . utils . fopen ( hfn , 'w' ) : pass return hfn
wrapper of __get_hosts_filename but create host file if it does not exist .