Skip to content

Commit

Permalink
fixup! CP-45573: Add 'xe host-show-updates' CLI
Browse files Browse the repository at this point in the history
Signed-off-by: Ming Lu <ming.lu@cloud.com>
  • Loading branch information
minglumlu committed Jan 29, 2024
1 parent 38276b1 commit cd42059
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ocaml/xapi-cli-server/cli_operations.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5466,9 +5466,10 @@ let check_task_status ?(quiet_on_success = false) ~rpc ~session_id ~task ~fd
~label ~ok () =
(* if the client thinks it's ok, check that the server does too *)
match Client.Task.get_status ~rpc ~session_id ~self:task with
| `success when ok ->
if not quiet_on_success then
marshal fd (Command (Print (Printf.sprintf "%s succeeded" label)))
| `success when ok && not quiet_on_success ->
marshal fd (Command (Print (Printf.sprintf "%s succeeded" label)))
| `success when ok && quiet_on_success ->
()
| `success ->
marshal fd
(Command
Expand Down

0 comments on commit cd42059

Please sign in to comment.