Skip to content

Commit aee7f48

Browse files
author
David Scott
committed
Add Query.diagnostics
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
1 parent 9eeef91 commit aee7f48

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

main.ml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,14 @@ let process root_dir name x =
140140
("uri", "URI of the storage medium") ::
141141
response.Storage.P.Types.configuration} in
142142
Deferred.Result.return (R.success (Args.Query.Query.rpc_of_response response))
143+
| { R.name = "Query.diagnostics"; R.params = [ args ] } ->
144+
let args = Args.Query.Diagnostics.request_of_rpc args in
145+
let args = Storage.P.Types.Plugin.Diagnostics.In.make args.Args.Query.Diagnostics.dbg in
146+
let args = Storage.P.Types.Plugin.Diagnostics.In.rpc_of_t args in
147+
let open Deferred.Result.Monad_infix in
148+
fork_exec_rpc root_dir (script root_dir name `Volume "Plugin.diagnostics") args Storage.P.Types.Plugin.Diagnostics.Out.t_of_rpc
149+
>>= fun response ->
150+
Deferred.Result.return (R.success (Args.Query.Diagnostics.rpc_of_response response))
143151
| { R.name = "SR.attach"; R.params = [ args ] } ->
144152
let args = Args.SR.Attach.request_of_rpc args in
145153
let device_config = args.Args.SR.Attach.device_config in

0 commit comments

Comments
 (0)