Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add a skip_on_prompts #521
If I cronjob a fabric task towards multiple hosts (-H ) and one of them has e.g. changed password, the session hangs, asking for a password. If I set the "abort_on_prompts", the session exits instead, and the rest of nodes in the role are never tasked.
So I'm needing something like a "skip_on_prompts" for my fully automated fabfile.
Can I make up this behaviour somehow? I tried setting env.abort_on_prompts=True, then wrapping into a warn_only=True, but the abort proceeds anyway.
Or, put in another way, warn_only=True should take precedence over abort_on_prompts=True.
Ok, so I just found a workaround for this by catching the abort exception;
referenced this issue
Mar 5, 2015
Hello Experts, I am newbie into the fabric, i have the same problem "password prompt" if it has wrong password, How i can customise by below fab file..