ia64/xen-unstable

changeset 19276:cff29d694a89

xend: Handle missing s3_integrity value, default to zero.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Mar 05 17:50:05 2009 +0000 (2009-03-05)
parents 7ee8bbac10d6
children 2a4eaa76d974 3fd8f9b34941
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Thu Mar 05 15:10:17 2009 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Thu Mar 05 17:50:05 2009 +0000
     1.3 @@ -2212,7 +2212,9 @@ class XendDomainInfo:
     1.4              if security.has_authorization(ssidref) == False:
     1.5                  raise VmError("VM is not authorized to run.")
     1.6  
     1.7 -        s3_integrity = self.info['s3_integrity']
     1.8 +        s3_integrity = 0
     1.9 +        if self.info.has_key('s3_integrity'):
    1.10 +            s3_integrity = self.info['s3_integrity']
    1.11          flags = (int(hvm) << 0) | (int(hap) << 1) | (int(s3_integrity) << 2)
    1.12  
    1.13          try: