aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-08-05 13:45:25 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-08-05 13:45:25 +0100
commitccecac2def886e62c4f50abfbe8b5d0d9a889bd7 (patch)
treebf7b15493550203eca782603ec033d65e8d77ac1
parent95d4283bb4284ffb463bde3670d80d06cf96c151 (diff)
downloadxen-ccecac2def886e62c4f50abfbe8b5d0d9a889bd7.tar.gz
xen-ccecac2def886e62c4f50abfbe8b5d0d9a889bd7.tar.bz2
xen-ccecac2def886e62c4f50abfbe8b5d0d9a889bd7.zip
xend: vncconsole config option mustn't be a string
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
-rw-r--r--tools/python/xen/xend/image.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py
index d5b508d6f6..1add987528 100644
--- a/tools/python/xen/xend/image.py
+++ b/tools/python/xen/xend/image.py
@@ -114,7 +114,7 @@ class ImageHandler:
self.display = vmConfig['platform'].get('display')
self.xauthority = vmConfig['platform'].get('xauthority')
- self.vncconsole = vmConfig['platform'].get('vncconsole')
+ self.vncconsole = int(vmConfig['platform'].get('vncconsole', 0))
self.dmargs = self.parseDeviceModelArgs(vmConfig)
self.pid = None
rtc_timeoffset = vmConfig['platform'].get('rtc_timeoffset')