[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] Decorators override CLI?
From: |
Jeff Forcier |
Subject: |
Re: [Fab-user] Decorators override CLI? |
Date: |
Tue, 14 Aug 2012 14:31:42 -0700 |
Hi David, sorry for the tardy reply!
On Mon, Aug 13, 2012 at 6:54 AM, David Röhr <address@hidden> wrote:
> Is there any reason why decorators override the input from the CLI?
> [...] Maybe this is
> intended?
It's currently intended, as per the execution usage docs:
http://docs.fabfile.org/en/1.4.3/usage/execution.html#order-of-precedence
Note though that if you change from '-H xxx' to 'taskname:host=xxx' it
should work as expected.
This has tripped up other folks as well; Fab 2.x will likely change
things to be more intuitive so that CLI always overrides anything
hard-coded, regardless of how "specific" the hard-coded setting is.
For now, though, backwards compat means your best bet is the per-task
override.
Best,
Jeff
--
Jeff Forcier
Unix sysadmin; Python/Ruby engineer
http://bitprophet.org