[XEND] Handle permission denied when calling xc.domain_getinfo

Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
Alastair Tse committed 2006-11-03 10:41:20 +00:00
1 parent 38a1a16494
commit 1974ebc7dd
2 files changed
+5 -1

No files matched your search

+5 -1
View File
@@ -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
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.