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.

_______________________________________________
Fab-user mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to