fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] try/except not working as expected.


From: Jeff Forcier
Subject: Re: [Fab-user] try/except not working as expected.
Date: Fri, 22 Oct 2010 13:56:19 -0400

Sorry -- as I kinda feared, I forgot to add it to fabric.api (just
fixed, but that won't come out till 0.9.3). You can easily import it
directly by doing "from fabric.operations import reboot".

On Fri, Oct 22, 2010 at 1:52 PM, Jeff Honey <address@hidden> wrote:
> Yeah...i replied directly last time instead of to the group.
>
> I look at reboot() in the 0.9.2 code and see that it waits for a specified 
> interval before printing "done" and then exit? Am I reading this right?
>
> For some reason, when I call fab, it can't find reboot() for some reason. 
> I'll have to figure out how to interrogate what ver is it trying to run. 
> Right now, I've just been running 'shutdown -r now' against the remote host 
> and then sleeping. Seems like the same thing but different. ;-)
> --
>  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
> ¤ kyoboku kazeoshi ¤
>  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
> ________________________________________
> From: address@hidden address@hidden On Behalf Of Jeff Forcier address@hidden
> Sent: Friday, October 22, 2010 11:46
> To: Jeff Honey
> Cc: Fabric Mailing List
> Subject: Re: [Fab-user] try/except not working as expected.
>
> (Looks like we went off-list at some point, roping it back in...)
>
> Right, I just meant to look at the source code and try to use that as
> a guide for whatever you're doing on your own :)
>
>    http://github.com/bitprophet/fabric/blob/0.9/fabric/operations.py#L620
>
> However, reboot() should've been included in fabric.api as long as
> you're on Fabric 0.9.2.
>
> -Jeff
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>



-- 
Jeff Forcier
Unix sysadmin; Python/Ruby developer
http://bitprophet.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]