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

[Xen-changelog] [xen-unstable] Make Xm Test default to bridge when cannot read config file



# HG changeset patch
# User Tom Wilkie <tom.wilkie@xxxxxxxxx>
# Date 1176373945 -3600
# Node ID dcbfe557e62d9770f2578d69bbd5f2e6c84befa8
# Parent  38f3a6dedad62debcd97b47139ec8592f13e8054
Make Xm Test default to bridge when cannot read config file

signed-off-by: Tom Wilkie <tom.wilkie@xxxxxxxxx>
---
 tools/xm-test/lib/XmTestLib/NetConfig.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)

diff -r 38f3a6dedad6 -r dcbfe557e62d tools/xm-test/lib/XmTestLib/NetConfig.py
--- a/tools/xm-test/lib/XmTestLib/NetConfig.py  Thu Apr 12 11:31:17 2007 +0100
+++ b/tools/xm-test/lib/XmTestLib/NetConfig.py  Thu Apr 12 11:32:25 2007 +0100
@@ -44,7 +44,11 @@ def getXendNetConfig():
     if not xconfig:
         xconfig = "/etc/xen/xend-config.sxp"
 
-    configfile = open(xconfig, 'r')
+    try:
+        configfile = open(xconfig, 'r')
+    except:
+        return "bridge"
+    
     S = configfile.read()
     pin = Parser()
     pin.input(S)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.