]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
Fix python pciif script to reference correct 2.0 compatibility variable.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 5 May 2006 13:02:40 +0000 (14:02 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 5 May 2006 13:02:40 +0000 (14:02 +0100)
In the Xen 2.0.x compatibility section of xend (where we try to parse
the s-expressions if they came from an SXP configuration file for Xen
2.0.x), the wrong variable is referenced. This fix corrects the python
script to use the correct variable.

Thanks to Mike Wright for reporting this.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
xen-unstable changeset:   9944:7801e09f518cfdf566a405bce2c3f41553e35218
xen-unstable date:        Fri May  5 14:01:43 2006 +0100

tools/python/xen/xend/server/pciif.py

index aa222691f654fe463ab6525ee6800ffa3620d8f3..fbab402c6b89f60b8d295575a3d263e1335e0c10 100644 (file)
@@ -94,7 +94,7 @@ class PciController(DevController):
 
         else:
             # Xen 2.0 configuration compatibility
-            domain = get_param(dev_config, 'domain', 0)
+            domain = get_param(config, 'domain', 0)
             bus  = get_param(config, 'bus')
             slot = get_param(config, 'dev')
             func = get_param(config, 'func')