From 00c13da9b463f5b70a9ad6d8af5262edc1482aee Mon Sep 17 00:00:00 2001 From: Konstantina Chremmou Date: Mon, 14 Oct 2024 21:58:10 +0100 Subject: [PATCH 1/2] Added WLB_VM_RELOCATION to the list of recognized messages. Signed-off-by: Konstantina Chremmou --- ocaml/sdk-gen/csharp/templates/Message2.mustache | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ocaml/sdk-gen/csharp/templates/Message2.mustache b/ocaml/sdk-gen/csharp/templates/Message2.mustache index 4661d815146..3dfe4f4503e 100644 --- a/ocaml/sdk-gen/csharp/templates/Message2.mustache +++ b/ocaml/sdk-gen/csharp/templates/Message2.mustache @@ -43,6 +43,7 @@ namespace XenAPI LEAF_COALESCE_COMPLETED, LEAF_COALESCE_FAILED, POST_ATTACH_SCAN_FAILED, + WLB_VM_RELOCATION, {{#message_types}} {{{message_type}}}, {{/message_types}} @@ -73,6 +74,8 @@ namespace XenAPI return MessageType.LEAF_COALESCE_FAILED; case "POST_ATTACH_SCAN_FAILED": return MessageType.POST_ATTACH_SCAN_FAILED; + case "WLB_VM_RELOCATION": + return MessageType.WLB_VM_RELOCATION; {{#message_types}} case "{{{message_type}}}": return MessageType.{{{message_type}}}; From 3a727d29ca9047c3f6631018ccc61b4580d3034e Mon Sep 17 00:00:00 2001 From: Konstantina Chremmou Date: Wed, 16 Oct 2024 16:11:58 +0100 Subject: [PATCH 2/2] Python command correction. Signed-off-by: Konstantina Chremmou --- ocaml/doc/wire-protocol.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocaml/doc/wire-protocol.md b/ocaml/doc/wire-protocol.md index e266afa3a6e..26b911bd2c7 100644 --- a/ocaml/doc/wire-protocol.md +++ b/ocaml/doc/wire-protocol.md @@ -556,7 +556,7 @@ To retrieve all the VM records in a single call: ```python >>> records = xen.VM.get_all_records(session)['Value'] ->>> records.keys() +>>> list(records.keys()) ['OpaqueRef:1', 'OpaqueRef:2', 'OpaqueRef:3', 'OpaqueRef:4' ] >>> records['OpaqueRef:1']['name_label'] 'Red Hat Enterprise Linux 7'