Skip to content

Commit 0db1f28

Browse files
cheng-zgaborigloi
authored andcommitted
CA-228035: Export update-resync-host and deprecate refresh_pack_info
Signed-off-by: Cheng Zhang <[email protected]>
1 parent 3b1f49d commit 0db1f28

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

ocaml/idl/datamodel.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3241,10 +3241,11 @@ let host_set_localdb_key = call
32413241

32423242
let host_refresh_pack_info = call
32433243
~name:"refresh_pack_info"
3244-
~in_product_since:rel_midnight_ride
32453244
~doc:"Refresh the list of installed Supplemental Packs."
32463245
~params:[Ref _host, "host", "The Host to modify"]
32473246
~allowed_roles:_R_POOL_OP
3247+
~lifecycle:[Published, rel_midnight_ride, "";
3248+
Deprecated, rel_ely, "Use Pool_update.resync_host instead"]
32483249
()
32493250

32503251
(* ------------------------------------------------------------------------------------------------------------

ocaml/xapi/cli_frontend.ml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,15 @@ let rec cmdtable_data : (string*cmd_spec) list =
959959
flags=[];
960960
};
961961

962+
"update-resync-host",
963+
{
964+
reqd=["host-uuid"];
965+
optn=[];
966+
help="Refreshes Host.updates";
967+
implementation=No_fd Cli_operations.update_resync_host;
968+
flags=[Hidden];
969+
};
970+
962971
"user-password-change",
963972
{
964973
reqd=["new"];

ocaml/xapi/cli_operations.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4837,3 +4837,8 @@ let update_destroy printer rpc session_id params =
48374837
let uuid = List.assoc "uuid" params in
48384838
let ref = Client.Pool_update.get_by_uuid rpc session_id uuid in
48394839
Client.Pool_update.destroy rpc session_id ref
4840+
4841+
let update_resync_host printer rpc session_id params =
4842+
let uuid = List.assoc "host-uuid" params in
4843+
let host = Client.Host.get_by_uuid rpc session_id uuid in
4844+
Client.Pool_update.resync_host rpc session_id host

0 commit comments

Comments
 (0)