File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 11(* * Xapi's local Unix domain socket *)
2- let xapi_unix_domain_socket_uri = " file:///var/xapi/xapi"
2+ let xapi_unix_domain_socket_uri =
3+ Uri. make ~scheme: " file" ~path: " /var/xapi/xapi" ()
34
45(* * Location of the xensource-inventory file on XenServer *)
56let xensource_inventory_filename = " /etc/xensource-inventory"
Original file line number Diff line number Diff line change 11(library
22 (name consts)
33 (modes best)
4+ (libraries uri)
45 (modules consts)
56)
67
Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ let with_rpc f switch () =
8686 Server_interface. make_server_varstored push_nothing ~cache path vm_uuid
8787 in
8888 (* rpc simulates what varstored would do *)
89- let uri = Uri. make ~scheme: " file" ~path () |> Uri. to_string in
90- D. debug " Connecting to %s" uri ;
89+ let uri = Uri. make ~scheme: " file" ~path () in
90+ D. debug " Connecting to %s" ( Uri. to_string uri) ;
9191 let rpc = make uri in
9292 Lwt. finalize
9393 (fun () ->
Original file line number Diff line number Diff line change @@ -129,7 +129,6 @@ let exn_to_string = function
129129 Printexc. to_string e
130130
131131let do_it uri string =
132- let uri = Uri. of_string uri in
133132 let connection = M. make uri in
134133 Lwt. finalize
135134 (fun () ->
@@ -179,7 +178,7 @@ module SessionCache = struct
179178
180179 let make_rpc ?timeout target =
181180 let uri = Uri. with_path target " /jsonrpc" in
182- make_json ?timeout @@ Uri. to_string @@ uri
181+ make_json ?timeout uri
183182
184183 let create_rpc ?timeout rpc ~uname ~pwd ~version ~originator () =
185184 let acquire () =
Original file line number Diff line number Diff line change 1212 * GNU Lesser General Public License for more details.
1313 *)
1414
15- val make : ?timeout : float -> string -> Rpc .call -> Rpc .response Lwt .t
15+ val make : ?timeout : float -> Uri .t -> Rpc .call -> Rpc .response Lwt .t
1616(* * [make ?timeout uri] returns an 'rpc' function which can be
1717 passed to Client.* functions *)
1818
19- val make_json : ?timeout : float -> string -> Rpc .call -> Rpc .response Lwt .t
19+ val make_json : ?timeout : float -> Uri .t -> Rpc .call -> Rpc .response Lwt .t
2020(* * [make ?timeout uri] returns an 'rpc' function which can be
2121 passed to Client.* functions *)
2222
You can’t perform that action at this time.
0 commit comments