[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Fix xm new -F -- this fix was recently introduced for xm create.
# HG changeset patch # User Ewan Mellor <ewan@xxxxxxxxxxxxx> # Node ID 2773c39df9a6e3f2ca66f5f0fc0d408ced65f369 # Parent 1b501311c7785bbfae3cf44c54e40ee58d6538b1 Fix xm new -F -- this fix was recently introduced for xm create. Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx> --- tools/python/xen/xm/new.py | 6 ++++++ 1 files changed, 6 insertions(+) diff -r 1b501311c778 -r 2773c39df9a6 tools/python/xen/xm/new.py --- a/tools/python/xen/xm/new.py Wed Nov 29 12:15:45 2006 +0000 +++ b/tools/python/xen/xm/new.py Wed Nov 29 12:16:19 2006 +0000 @@ -58,6 +58,12 @@ def main(argv): if not opts: return + if type(config) == str: + try: + config = sxp.parse(file(config))[0] + except IOError, exn: + raise OptionError("Cannot read file %s: %s" % (config, exn[1])) + if opts.vals.dryrun: PrettyPrint.prettyprint(config) else: _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |