Skip to content

Commit 9021638

Browse files
committed
CA-235986: Add Pool_update.version to the CLI
Signed-off-by: Sharad Yadav <[email protected]>
1 parent 445c124 commit 9021638

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ocaml/client_records/records.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,7 @@ let pool_update_record rpc session_id update =
10281028
make_field ~name:"uuid" ~get:(fun () -> (x ()).API.pool_update_uuid) ();
10291029
make_field ~name:"name-label" ~get:(fun () -> (x ()).API.pool_update_name_label) ();
10301030
make_field ~name:"name-description" ~get:(fun () -> (x ()).API.pool_update_name_description) ();
1031+
make_field ~name:"version" ~get:(fun () -> (x ()).API.pool_update_version) ();
10311032
make_field ~name:"installation-size" ~get:(fun () -> Int64.to_string (x ()).API.pool_update_installation_size) ();
10321033
make_field ~name:"hosts" ~get:(fun () -> String.concat ", " (get_hosts ())) ~get_set:get_hosts ();
10331034
make_field ~name:"after-apply-guidance" ~get:(fun () -> String.concat ", " (after_apply_guidance ())) ~get_set:after_apply_guidance ();

ocaml/xapi/cli_operations.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ let gen_cmds rpc session_id =
782782
; Client.Host_cpu.(mk get_all get_all_records_where get_by_uuid host_cpu_record "host-cpu" [] ["uuid";"number";"vendor";"speed";"utilisation"] rpc session_id)
783783
; Client.Host_crashdump.(mk get_all get_all_records_where get_by_uuid host_crashdump_record "host-crashdump" [] ["uuid";"host";"timestamp";"size"] rpc session_id)
784784
; Client.Pool_patch.(mk get_all get_all_records_where get_by_uuid pool_patch_record "patch" [] ["uuid"; "name-label"; "name-description"; "size"; "hosts"; "after-apply-guidance"] rpc session_id)
785-
; Client.Pool_update.(mk get_all get_all_records_where get_by_uuid pool_update_record "update" [] ["uuid"; "name-label"; "name-description"; "installation-size"; "hosts"; "after-apply-guidance"] rpc session_id)
785+
; Client.Pool_update.(mk get_all get_all_records_where get_by_uuid pool_update_record "update" [] ["uuid"; "name-label"; "name-description"; "version"; "installation-size"; "hosts"; "after-apply-guidance"] rpc session_id)
786786
; Client.VDI.(mk get_all get_all_records_where get_by_uuid vdi_record "vdi" [] ["uuid";"name-label";"name-description";"virtual-size";"read-only";"sharable";"sr-uuid"] rpc session_id)
787787
; Client.VBD.(mk get_all get_all_records_where get_by_uuid vbd_record "vbd" [] ["uuid";"vm-uuid";"vm-name-label";"vdi-uuid";"device"; "empty"] rpc session_id)
788788
; Client.SR.(mk get_all get_all_records_where get_by_uuid sr_record "sr" [] ["uuid";"name-label";"name-description";"host";"type";"content-type"] rpc session_id)

0 commit comments

Comments
 (0)