mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Make Xm Test default to bridge when cannot read config file
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
1 parent
60bd45b963
commit
de2c5005c6
1 file changed
+5
-1
@@ -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)
|
||||
|
||||