Fix typo, as suggested by Stefan Berger.
authorEwan Mellor <ewan@xensource.com>
Tue, 30 Jan 2007 16:32:50 +0000 (16:32 +0000)
committerEwan Mellor <ewan@xensource.com>
Tue, 30 Jan 2007 16:32:50 +0000 (16:32 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomainInfo.py

index 94c4f4b5c9c878cc71403c0bc5e6d759a2ba4066..b8624140b99b84f688f6f0e14b90498fb00cad3b 100644 (file)
@@ -2125,7 +2125,7 @@ class XendDomainInfo:
                 config['mode'] = 'RW'
 
         if dev_class == 'vtpm':
-            if not config.has_type('type'):
+            if not config.has_key('type'):
                 config['type'] = 'paravirtualised' # TODO
             if not config.has_key('backend'):
                 config['backend'] = "00000000-0000-0000-0000-000000000000"