[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] having failed run() and sudo() not abort the whole opera
From: |
Jeff Forcier |
Subject: |
Re: [Fab-user] having failed run() and sudo() not abort the whole operation |
Date: |
Thu, 23 Jul 2009 15:47:38 -0400 |
Hi Timothee,
Globally, you can set env.warn_only = True; or on a situational basis
you can wrap code in "with settings(warn_only=True):". That will turn
aborts into warnings.
Best,
Jeff
On Thu, Jul 23, 2009 at 3:42 PM, Timothee Besset<address@hidden> wrote:
> Hey all,
>
> How can I have my run() and sudo() report an error but not abort the
> whole operation. I am using fab to scan a whole batch of machines and
> detect the ones one which some operations are failing. With run() I can
> kinda work around with a " ; true" at the end of my commands but that
> doesn't apply to sudo (and it's a hack anyway).
>
> So again, I'd like to be able to have run() and abort() fail on several
> hosts but still test all the hosts?
>
> TTimo
>
>
>
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>