ia64/xen-unstable

changeset 7912:04a7decd0645

Fix support for sxp domain configuration files.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Sat Nov 19 01:59:43 2005 +0100 (2005-11-19)
parents 94d39d9acc8e
children 878a9891b056 86cf8f4e5de5
files tools/python/xen/xm/create.py
line diff
     1.1 --- a/tools/python/xen/xm/create.py	Fri Nov 18 19:56:03 2005 +0100
     1.2 +++ b/tools/python/xen/xm/create.py	Sat Nov 19 01:59:43 2005 +0100
     1.3 @@ -905,6 +905,9 @@ def parseCommandLine(argv):
     1.4              opts.setopt('name', os.path.basename(opts.getopt('defconfig')))
     1.5          config = make_config(opts.vals)
     1.6  
     1.7 +    if type(config) == str:
     1.8 +        config = sxp.parse(file(config))[0]
     1.9 +
    1.10      return (opts, config)
    1.11  
    1.12