Hi Ryan, I think Morgan mentioned this when you asked on IRC, but -H definitely works on its own -- it is actually used to populate env.hosts itself, and usually overrides any value you set at module level inside the fabfile.
If you provide your Fabric version and the fabfile code you're trying to use, plus the way you're invoking it + the resulting output, we can try to help. Thanks, Jeff On Thu, Jul 12, 2012 at 6:26 AM, Ryan Bales <[email protected]> wrote: > Hello all, > > I'm trying to build a web app around a few fabric scripts, and I need to > supply a dynamic list of hosts to the scripts. I saw the -H switch, but it > apparently only works when env.hosts is defined in the fabric script. I > also looked at command-line kwargs for methods, but the methods won't even > be executed without env.hosts being defined. Can someone point me in the > right direction? > > Thanks, > -- > Ryan Bales > http://thinkt4nk.com/ > http://twitter.com/#!/thinkt4nk > https://github.com/thinkt4nk > > > > > > -- > Ryan Bales > http://thinkt4nk.com/ > http://twitter.com/#!/thinkt4nk > https://github.com/thinkt4nk > > > > _______________________________________________ > Fab-user mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/fab-user > -- Jeff Forcier Unix sysadmin; Python/Ruby engineer http://bitprophet.org _______________________________________________ Fab-user mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/fab-user
