From: Ewan Mellor Date: Wed, 8 Nov 2006 12:25:56 +0000 (+0000) Subject: Add a shutdownWatch field in the HVMImageHandler constructor, to avoid error X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15567^2~58 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6037d8bec86f6a05117e3eb1e9a522f23d1e072f;p=xen.git 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 --- 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)