mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
[XEND] Fix typos in vfb/vnc detect in image.py
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
ddffd1ed7d
commit
68429d2e80
1 file changed
+3
-3
@@ -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
|
||||
|
||||