[XEND] Fix XenAPI Host interface so that get_record works.

Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
Alastair Tse committed 2006-10-05 19:13:52 +01:00
1 parent b2b451d4cd
commit d3602e826b
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -382,8 +382,8 @@ class XendAPI:
def host_get_record(self, session, host_ref):
node = XendNode.instance()
dom = XendDomain.instance()
record = {'name/label': node.name,
'name/description': '',
record = {'name_label': node.name,
'name_description': '',
'software_version': node.xen_version(),
'resident_VMs': dom.get_domain_refs(),
'host_CPUs': node.get_host_cpu_refs()}
+1 -1
View File
@@ -549,7 +549,7 @@ class XendDomain:
result = []
try:
self.domains_lock.acquire()
result = [d.getVMRef() for d in self.domains]
result = [d.get_uuid() for d in self.domains.values()]
finally:
self.domains_lock.release()
return result
+1 -1
View File
@@ -44,7 +44,7 @@ class XendNode:
'host': self.uuid,
'number': i,
'features': cpu_features}
self.cpus[uuid] = cpu_info
self.cpus[cpu_uuid] = cpu_info
def shutdown(self):
return 0
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.