ia64/xen-unstable
changeset 13789:3db881ef97c4
[XEND] Fix typos in vfb/vnc detect in image.py
Signed-off-by: Alastair Tse <atse@xensource.com>
Signed-off-by: Alastair Tse <atse@xensource.com>
author | Alastair Tse <atse@xensource.com> |
---|---|
date | Wed Jan 31 15:22:33 2007 +0000 (2007-01-31) |
parents | beb0b36de156 |
children | 9f83b07caabe |
files | tools/python/xen/xend/image.py |
line diff
1.1 --- a/tools/python/xen/xend/image.py Wed Jan 31 15:08:29 2007 +0000 1.2 +++ b/tools/python/xen/xend/image.py Wed Jan 31 15:22:33 2007 +0000 1.3 @@ -450,10 +450,10 @@ class HVMImageHandler(ImageHandler): 1.4 1.5 vnc_config = {} 1.6 has_vfb = False 1.7 - has_vnc = int(vmConfig['image'].get('vnc')) != 0 1.8 + has_vnc = int(vmConfig['image'].get('vnc', 0)) != 0 1.9 for dev_uuid in vmConfig['console_refs']: 1.10 - dev_type, dev_info = vmConfig['devices'][devuuid] 1.11 - if dev_type == 'rfb': 1.12 + dev_type, dev_info = vmConfig['devices'][dev_uuid] 1.13 + if dev_type == 'vfb': 1.14 vnc_config = dev_info.get('other_config', {}) 1.15 has_vfb = True 1.16 break