fabric/fabric — Issue #454: upload_template does not follow "with cd()"
Author: quinode
Created: 2011-10-20 10:41:43+00:00
State: open

I had errors doing this :

with cd('/etc/apache2/sites-available'):
upload_template('vhost.txt',env.domain, context=vhost_context, use_sudo=True)

or this :

with cd('/etc/apache2/sites-available'):
upload_template('vhost.txt','./%(domain)s' % env, context=vhost_context, use_sudo=True)

the only sollution was to drop the "with cd()" :

upload_template('vhost.txt','/etc/apache2/sites-available/%(domain)s' % env, context=vhost_context, use_sudo=True)