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

[Xen-changelog] [xen-unstable] [XEND] Fix typos in vfb/vnc detect in image.py



# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Date 1170256953 0
# Node ID 3db881ef97c44dbe749c7b3e7679f97dd959262d
# Parent  beb0b36de1560f5a0094461063e48fa659398a0f
[XEND] Fix typos in vfb/vnc detect in image.py

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/image.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -r beb0b36de156 -r 3db881ef97c4 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Wed Jan 31 15:08:29 2007 +0000
+++ b/tools/python/xen/xend/image.py    Wed Jan 31 15:22:33 2007 +0000
@@ -450,10 +450,10 @@ class HVMImageHandler(ImageHandler):
 
         vnc_config = {}
         has_vfb = False
-        has_vnc = int(vmConfig['image'].get('vnc')) != 0
+        has_vnc = int(vmConfig['image'].get('vnc', 0)) != 0
         for dev_uuid in vmConfig['console_refs']:
-            dev_type, dev_info = vmConfig['devices'][devuuid]
-            if dev_type == 'rfb':
+            dev_type, dev_info = vmConfig['devices'][dev_uuid]
+            if dev_type == 'vfb':
                 vnc_config = dev_info.get('other_config', {})
                 has_vfb = True
                 break

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