fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] unable to execute scripts after upgrade


From: Marcelo Araújo Pontes
Subject: Re: [Fab-user] unable to execute scripts after upgrade
Date: Wed, 11 Apr 2012 16:55:18 -0300 (BRT)

Hi Rodrick,

Your command usage is wrong. When you execute "fab -H localhost f1" your are telling fabric to run the task named "f1" from the default fabfile.py (which you didn't specify) on the host "localhost". Aparently "f1" is the name of your fabfile not your task so, as the fatal error just told you, you can specify the fabfile path with the -f option. The correct usage would be like this:

# fab -f f1.py -H localhost host_type


De: "Rodrick Brown" <address@hidden>
Para: address@hidden
Enviadas: Quarta-feira, 11 de Abril de 2012 16:41:48
Assunto: [Fab-user] unable to execute scripts after upgrade

# cat f1

from fabric.api import run

 

def host_type():

    run('uname -s')

 

# fab -H localhost f1

 

Fatal error: Couldn't find any fabfiles!

 

Remember that -f can be used to specify fabfile path, and use -h for help.

 

Aborting.


Please visit our website for important disclaimers/disclosures regarding Knight’s products and services:

http://knight.com/KnightEmailDisclaimer.html


_______________________________________________
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user

reply via email to

[Prev in Thread] Current Thread [Next in Thread]