summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2014-03-20 13:29:45 -0400
committerCole Robinson <crobinso@redhat.com>2014-03-20 14:04:29 -0400
commit7cc76a9c54cead22125f81e333d448b99c782f6b (patch)
tree3c19a686cd41e5bf54b302bf51b1fa05c070558e
parent8d580cc483d2a9bf47283676233914e4cc8d29a6 (diff)
downloadvirt-manager-7cc76a9c54cead22125f81e333d448b99c782f6b.tar.gz
domain: Fix viewing details of xen management domain
-rw-r--r--virtManager/domain.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/virtManager/domain.py b/virtManager/domain.py
index 99fc33d9..c549be63 100644
--- a/virtManager/domain.py
+++ b/virtManager/domain.py
@@ -446,7 +446,8 @@ class vmmDomain(vmmLibvirtObject):
def is_management_domain(self):
if self._is_management_domain is None:
- self._is_management_domain = (self.get_id() == 0)
+ self._is_management_domain = (self.conn.is_xen() and
+ self.get_id() == 0)
return self._is_management_domain
def has_spicevmc_type_redirdev(self):
@@ -1941,8 +1942,7 @@ class vmmDomain(vmmLibvirtObject):
# (ie MAX_LONG) so lets clamp it to the actual
# physical RAM in machine which is the effective
# real world limit
- if (self.conn.is_xen() and
- self.is_management_domain()):
+ if self.is_management_domain() and info:
info[1] = self.conn.host_memory_size()
now = time.time()