def _write_conf(conf, path=MAIN_CF):
 with salt.utils.fopen(path, 'w') as fh_:
  for line in conf:
   if isinstance(line, dict):
    fh_.write(' '.join(line))
   else:
    fh_.write(line)
   fh_.write('\n')

def _write_conf ( conf , path = MAIN_CF ) : with salt . utils . fopen ( path , 'w' ) as fh_ : for line in conf : if isinstance ( line , dict ) : fh_ . write ( ' ' . join ( line ) ) else : fh_ . write ( line ) fh_ . write ( '\n' )
write out configuration file .