xend: Handle missing s3_integrity value, default to zero.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2009-03-05 17:50:05 +00:00
1 parent eea1a2ea39
commit 6976476d8c
1 file changed
+3 -1
+3 -1
View File
@@ -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:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.