xen/13753_xenapi.patch

27 lines
1.1 KiB
Diff

# HG changeset patch
# User Alastair Tse <atse@xensource.com>
# Date 1170256953 0
# Node ID 3db881ef97c44dbe749c7b3e7679f97dd959262d
# Parent beb0b36de1560f5a0094461063e48fa659398a0f
[XEND] Fix typos in vfb/vnc detect in image.py
Signed-off-by: Alastair Tse <atse@xensource.com>
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