mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xend: Handle missing s3_integrity value, default to zero.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
1 parent
eea1a2ea39
commit
6976476d8c
1 file changed
+3
-1
@@ -2212,7 +2212,9 @@ class XendDomainInfo:
|
||||
if security.has_authorization(ssidref) == False:
|
||||
raise VmError("VM is not authorized to run.")
|
||||
|
||||
s3_integrity = self.info['s3_integrity']
|
||||
s3_integrity = 0
|
||||
if self.info.has_key('s3_integrity'):
|
||||
s3_integrity = self.info['s3_integrity']
|
||||
flags = (int(hvm) << 0) | (int(hap) << 1) | (int(s3_integrity) << 2)
|
||||
|
||||
try:
|
||||
|
||||