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

[Xen-changelog] [xen-unstable] Fix xm create -F. This can't be very widely used, because it looks like it's



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Node ID 4fc1688d9a163644b4c3b15072432d1c2b203c50
# Parent  f7368ad7c795d666ba462d52968cceb2c64f96d7
Fix xm create -F.  This can't be very widely used, because it looks like it's
been broken for ages!

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/xen/xm/create.py |    3 +++
 1 files changed, 3 insertions(+)

diff -r f7368ad7c795 -r 4fc1688d9a16 tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py     Tue Sep 05 17:26:18 2006 +0100
+++ b/tools/python/xen/xm/create.py     Tue Sep 05 17:26:20 2006 +0100
@@ -1169,6 +1169,9 @@ def main(argv):
     if not opts:
         return
 
+    if type(config) == str:
+            config = sxp.parse(file(config))[0]
+
     if opts.vals.dryrun:
         PrettyPrint.prettyprint(config)
     else:

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