Hi this is my first fabric script Looks like I have an error in this part , but I'm unable to find out what causes it :
vhost_context = {
'user' : env.user,
'domain' : env.domain,
'projet' : env.projet
}
with cd('/etc/apache2'):
upload_template( 'vhost.txt',
'sites-available/%(domain)s' % env,
`
context=vhost_context,use_sudo=True)
The vhost.txt file is at the same level as the fabfile.py
the error says :
File "/Users/dom/VM/devcoop/fabfile.py", line 140, in apache_vhost
upload_template('vhost.txt', 'sites-available/%(domain)s' % env,
context=vhost_context,use_sudo=True)
File
"/Library/Python/2.7/site-packages/Fabric-1.3a._2faf457_-py2.7.egg/fabric/contrib/files.py",
line 110, in upload_template
text = text % context
TypeError: not enough arguments for format string
thanks for your help!
--
Dominique Guardiola, QUINODE
• http://www.quinode.fr/
• Tel : 04.27.86.84.37
• Mob : 06.15.13.22.27
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Fab-user mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/fab-user
