So far with all of my fabric code I've been able to wrap any everything I
didn't want to end my script via:
with settings(warn_only=True):
do pythonic something here
however this seems to still fail and not purely warn if it is unable to connect
to a host. Ie: No route to host, invalid DNS name, etc.
Is there any way to keep fabric from exiting out on this and letting me
continue? Not of the other settings in env seem to be related to exit behavior
Examples:
Invalid hostname:
In [12]: env['host_string']='someinvalidhost.mydomain.blah'
In [13]: with settings(warn_only=True):
run("ls")
....:
....:
[someinvalidhost.mydomain.blah] run: ls
Fatal error: Name lookup failed for someinvalidhost.mydomain.blah
Aborting.
---------------------------------------------------------------------------
SystemExit Traceback (most recent call last)
No Route to host:
In [18]: env['host_string']='10.1.1.1'
In [19]: with settings(warn_only=True):
run("help")
....:
....:
[10.21.1.200] run: help
Fatal error: Low level socket error connecting to host 10.21.1.200: No route to
host
Aborting.
---------------------------------------------------------------------------
SystemExit Traceback (most recent call last)
-Chris H
[cid:[email protected]]
________________________________
Chris Henry | Operations Manager | AudienceScience
Phone | 425.201.3874
Fax | 425.201.3877
Email | [email protected]<mailto:[email protected]>
Website | www.AudienceScience.com
We have moved! Please make note of our new address.
1120 112th Avenue NE | Suite 400 | Bellevue, WA 98004 | United States
France * Germany * India * Italy * Japan * Netherlands * United Kingdom *
United States
Learn Why AudienceScience Is The Leader In Audience Targeting
www.AudienceScience.com<http://www.audiencescience.com/>
Check out our NEW AudienceScience Market Intelligence Report
Audience Targeting Platforms: The Missing Piece in the Online
Ecosystem<http://www.audiencescience.com/contact-ATplatform.asp>
<<inline: image001.jpg>>
_______________________________________________ Fab-user mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/fab-user
