mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
[XEND] Fix XenAPI Host interface so that get_record works.
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
b2b451d4cd
commit
d3602e826b
3 files changed
+4
-4
No files matched your search
@@ -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()}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||