From 6037d8bec86f6a05117e3eb1e9a522f23d1e072f Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Wed, 8 Nov 2006 12:25:56 +0000 Subject: [PATCH] Add a shutdownWatch field in the HVMImageHandler constructor, to avoid error messages if creation fails and the watch gets torn down. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/image.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index f140c158c7..8c1f21a52e 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -248,6 +248,11 @@ class PPC_LinuxImageHandler(LinuxImageHandler): class HVMImageHandler(ImageHandler): + def __init__(self, vm, imageConfig, deviceConfig): + ImageHandler.__init__(self, vm, imageConfig, deviceConfig) + self.shutdownWatch = None + + def configure(self, imageConfig, deviceConfig): ImageHandler.configure(self, imageConfig, deviceConfig) -- 2.30.2