[XEND] Don't hide the 'type' SXP config item from HVM guests
authorAlastair Tse <atse@xensource.com>
Fri, 3 Nov 2006 11:42:57 +0000 (11:42 +0000)
committerAlastair Tse <atse@xensource.com>
Fri, 3 Nov 2006 11:42:57 +0000 (11:42 +0000)
Should allow network devices to properly initialised in HVM guests.

Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/XendConfig.py

index 1237f6b891f33860babebf3ecd450ab3392c6386..32d9f906ac4793c449cced3535f41e87d7c136af 100644 (file)
@@ -844,8 +844,7 @@ class XendConfig(dict):
                                   "configuration dictionary.")
             
         sxpr.append(dev_type)
-        config = [(opt, val) for opt, val in dev_info.items() \
-                  if opt != 'type']
+        config = [(opt, val) for opt, val in dev_info.items()]
         sxpr += config
 
         return sxpr