Skip to content

Commit 0b79d88

Browse files
committed
Resolve build failure in message_forwarding.ml
Change call_slave_... functions for new added ssh feature code to resolve build failure. Signed-off-by: Bengang Yuan <[email protected]>
1 parent 4a81f7e commit 0b79d88

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ocaml/xapi/message_forwarding.ml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4027,16 +4027,14 @@ functor
40274027
let enable_ssh ~__context ~self =
40284028
info "%s: host = '%s'" __FUNCTION__ (host_uuid ~__context self) ;
40294029
let local_fn = Local.Host.enable_ssh ~self in
4030-
do_op_on ~local_fn ~__context ~host:self (fun session_id rpc ->
4031-
Client.Host.enable_ssh ~rpc ~session_id ~self
4032-
)
4030+
let remote_fn = Client.Host.enable_ssh ~self in
4031+
do_op_on ~local_fn ~__context ~host:self ~remote_fn
40334032

40344033
let disable_ssh ~__context ~self =
40354034
info "%s: host = '%s'" __FUNCTION__ (host_uuid ~__context self) ;
40364035
let local_fn = Local.Host.disable_ssh ~self in
4037-
do_op_on ~local_fn ~__context ~host:self (fun session_id rpc ->
4038-
Client.Host.disable_ssh ~rpc ~session_id ~self
4039-
)
4036+
let remote_fn = Client.Host.disable_ssh ~self in
4037+
do_op_on ~local_fn ~__context ~host:self ~remote_fn
40404038
end
40414039

40424040
module Host_crashdump = struct

0 commit comments

Comments
 (0)