Add a shutdownWatch field in the HVMImageHandler constructor, to avoid error
authorEwan Mellor <ewan@xensource.com>
Wed, 8 Nov 2006 12:25:56 +0000 (12:25 +0000)
committerEwan Mellor <ewan@xensource.com>
Wed, 8 Nov 2006 12:25:56 +0000 (12:25 +0000)
messages if creation fails and the watch gets torn down.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/image.py

index f140c158c72984749fbbbfb32d7420cbece765ca..8c1f21a52e2566564c5ca855a3a1b6639f417c4a 100644 (file)
@@ -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)