def __render_script(path, vm_=None, opts=None, minion=''):
 log.info('Rendering deploy script: {0}'.format(path))
 try:
  with salt.utils.fopen(path, 'r') as fp_:
   template = Template(fp_.read())
   return str(template.render(opts=opts, vm=vm_, minion=minion))
 except AttributeError:
  with salt.utils.fopen(path, 'r') as fp_:
   return fp_.read()

def __render_script ( path , vm_ = None , opts = None , minion = '' ) : log . info ( 'Rendering deploy script: {0}' . format ( path ) ) try : with salt . utils . fopen ( path , 'r' ) as fp_ : template = Template ( fp_ . read ( ) ) return str ( template . render ( opts = opts , vm = vm_ , minion = minion ) ) except AttributeError : with salt . utils . fopen ( path , 'r' ) as fp_ : return fp_ . read ( )
return the rendered script .