diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index e9506f2d10..ab80f3e742 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -377,8 +377,8 @@ class HVMImageHandler(ImageHandler): return ret if vnc: - vncdisplay = sxp.child_value(config, 'vncdisplay', - int(self.vm.getDomid())) + vncdisplay = int(sxp.child_value(config, 'vncdisplay', + self.vm.getDomid())) vncunused = sxp.child_value(config, 'vncunused') if vncunused: