fab-user
[Top][All Lists]
Advanced

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

[Fab-user] Decorators override CLI?


From: David Röhr
Subject: [Fab-user] Decorators override CLI?
Date: Mon, 13 Aug 2012 15:54:03 +0200

Is there any reason why decorators override the input from the CLI?

@task
@hosts('10.0.0.1')
def test():
    run('hostname')

Running this gets me the hostname from 10.0.0.1, using -H 10.0.0.2
still gets me the hostname from 10.0.0.1. Same goes if I decied to use
roles, the -R don't override the roles decorator. Maybe this is
intended?


/D.



reply via email to

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