mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[XEND] Handle permission denied when calling xc.domain_getinfo
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
38a1a16494
commit
1974ebc7dd
2 files changed
+5
-1
No files matched your search
@@ -328,7 +328,11 @@ class XendDomain:
|
||||
@rtype: list of dicts
|
||||
@return: A list of dicts representing the running domains.
|
||||
"""
|
||||
return xc.domain_getinfo()
|
||||
try:
|
||||
return xc.domain_getinfo()
|
||||
except RuntimeError, e:
|
||||
log.exception("Unable to get domain information.")
|
||||
return {}
|
||||
|
||||
def _setDom0CPUCount(self):
|
||||
"""Sets the number of VCPUs dom0 has. Retreived from the
|
||||
|
||||