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:
Tom Wilkie committed 2007-04-12 11:32:25 +01:00
1 parent 60bd45b963
commit de2c5005c6
1 file changed
+5 -1
+5 -1
View File
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.