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

[Xen-changelog] [xen-unstable] xm: Improve xm error if booted native



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1233748705 0
# Node ID 7e15ccb7bbd88e550ada6a6b86196cc4e5d880b6
# Parent  3e1e87052029dfdefbbc7e4f4b8868c6ff24b401
xm: Improve xm error if booted native

Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxxxx>
---
 tools/python/xen/xm/main.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)

diff -r 3e1e87052029 -r 7e15ccb7bbd8 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Wed Feb 04 11:57:47 2009 +0000
+++ b/tools/python/xen/xm/main.py       Wed Feb 04 11:58:25 2009 +0000
@@ -59,7 +59,11 @@ import XenAPI
 import XenAPI
 
 import xen.lowlevel.xc
-xc = xen.lowlevel.xc.xc()
+try:
+    xc = xen.lowlevel.xc.xc()
+except Exception, ex:
+    print >>sys.stderr, ("Is xen kernel running?")
+    sys.exit(1)
 
 import inspect
 from xen.xend import XendOptions

_______________________________________________
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®.