Skip to contentSkip to conversation

Add uuid to host record

PATCH Applied Jim Fehlig 2 participants 2 messages Nov 14, 2006

lore
Share & tools
lore

Jim Fehlig

author
#0 lore raw

PATCH 1/1 Add uuid to host record

This patch adds uuid to host record returned by host_get_record. libxen fails to parse the host record when this field missing.

Regards,
Jim

# HG changeset patch
# User [email protected]
# Date 1163463829 25200
# Node ID 3342aabd73e0332a398bc8f69543213d196a0845
# Parent 9a341c6ef6ae2ce90ccdcf89718d4365426d9d96
Add uuid to host record returned by host_get_record. libxen fails to parse the host record with this field missing.

tools/python/xen/xend/XendAPI.py +2 -1
diff -r 9a341c6ef6ae -r 3342aabd73e0 tools/python/xen/xend/XendAPI.py
@@ -481,7 +481,8 @@ class XendAPI:
     def host_get_record(self, session, host_ref):
         node = XendNode.instance()
         dom = XendDomain.instance()
-        record = {'name_label': node.name,
+        record = {'uuid': node.uuid,
+                  'name_label': node.name,
                   'name_description': '',
                   'software_version': node.xen_version(),
                   'resident_VMs': dom.get_domain_refs(),

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Applied
#1 lore raw
Quoted 2 lines · Jim Fehlig

This patch adds uuid to host record returned by host_get_record. libxen fails to parse the host record when this field missing.

Applied, thanks Jim.

Ewan.