xend: Small fix for hvm/hap flags.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 30 Jan 2008 09:38:10 +0000 (09:38 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 30 Jan 2008 09:38:10 +0000 (09:38 +0000)
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
tools/python/xen/xend/XendDomainInfo.py

index fc8f073ec8042a2a205d16e140f3e352a52be779..8cb1531f066c7b2e6b09b3c30415e82616c8f696 100644 (file)
@@ -1658,7 +1658,7 @@ class XendDomainInfo:
                 domid = 0,
                 ssidref = ssidref,
                 handle = uuid.fromString(self.info['uuid']),
-                flags = int((hvm << 0) | (hap << 1)),
+                flags = (int(hvm) << 0) | (int(hap) << 1),
                 target = self.info.target())
         except Exception, e:
             # may get here if due to ACM the operation is not permitted