def download_template(name=None, url=None):
 if (url is None):
  url = ('http://download.openvz.org/template/precreated/%s.tar.gz' % name)
 with cd('/var/lib/vz/template/cache'):
  run_as_root(('wget --progress=dot:mega "%s"' % url))

def download_template ( name = None , url = None ) : if ( url is None ) : url = ( 'http://download.openvz.org/template/precreated/%s.tar.gz' % name ) with cd ( '/var/lib/vz/template/cache' ) : run_as_root ( ( 'wget --progress=dot:mega "%s"' % url ) )
download an openvz template .