|
From: | Dave Peck |
Subject: | [Fab-user] Re: Using context_managers.settings with hosts |
Date: | Wed, 9 Mar 2011 18:13:28 -0800 |
I'm clearly just learning. Digging into the source, I see that sudo prompts because host_string is not set. But that's just one host, which leads me to the fundamental problem: fabric is calling my command per host (or once, it seems, if no hosts are defined). So the only right thing to do is modify hosts outside of the command. It's fundamental to the command execution model. Bottom line: my mental expectation for command execution is different than reality. My naive expectation was that lower-level utilities like sudo, etc. would run across all hosts, while my own top-level commands will select hosts. Clearly not a good expectation. That's all for now... having fun learning this stuff. -Dave On Mar 9, 2011, at 5:50 PM, Dave Peck wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |