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

[Xen-changelog] [xen-unstable] [XM] Print qualified path to config file on domain creation.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID 0471272a5de2dcc30278ac74a51164f76267899a
# Parent  505cd47089463e6a7ed61ed9b303b6b422c74229
[XM] Print qualified path to config file on domain creation.
From: Glauber de Oliveira Costa <gcosta@xxxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/python/xen/xm/opts.py |    6 ++++++
 1 files changed, 6 insertions(+)

diff -r 505cd4708946 -r 0471272a5de2 tools/python/xen/xm/opts.py
--- a/tools/python/xen/xm/opts.py       Sat Oct 28 18:08:43 2006 +0100
+++ b/tools/python/xen/xm/opts.py       Mon Oct 23 12:43:32 2006 +0100
@@ -488,6 +488,8 @@ class Opts:
                 p = os.path.join(x, self.vals.defconfig)
             else:
                 p = self.vals.defconfig
+            if not p.startswith('/'):
+                p = os.path.join(os.path.curdir, p)
             if os.path.exists(p):
                 self.info('Using config file "%s".' % p)
                 self.load(p, help)
@@ -518,6 +520,10 @@ class Opts:
         exec cmd in globs, locs
         try:
             execfile(defconfig, globs, locs)
+        except SyntaxError,e:
+                raise SyntaxError, \
+                "Errors were found at line %d while processing %s:\n\t%s"\
+                %(e.lineno,defconfig,e.text)
         except:
             if not help: raise
         if help:

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