Skip to content

Commit e39ab6f

Browse files
authored
CP-52365 fix up driver-tool invocations (#6367)
Not all driver-tool invocations have been properly adjusted to an updated command line syntax; do it here.
2 parents 189c82c + 660df40 commit e39ab6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ocaml/xapi/xapi_host_driver.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ let select ~__context ~self ~variant =
142142
if v.API.driver_variant_hardware_present = false then
143143
no_hardware (Ref.string_of variant) ;
144144
let stdout =
145-
Tool.call ["select"; d.API.host_driver_name; v.API.driver_variant_name]
145+
Tool.call
146+
["-s"; "-n"; d.API.host_driver_name; "-v"; v.API.driver_variant_name]
146147
in
147148
info "%s: %s" __FUNCTION__ stdout ;
148149
Db.Host_driver.set_selected_variant ~__context ~self ~value:variant
@@ -154,7 +155,7 @@ let select ~__context ~self ~variant =
154155
let deselect ~__context ~self =
155156
D.debug "%s driver %s" __FUNCTION__ (Ref.string_of self) ;
156157
let d = Db.Host_driver.get_record ~__context ~self in
157-
let stdout = Tool.call ["deselect"; d.API.host_driver_name] in
158+
let stdout = Tool.call ["-d"; d.API.host_driver_name] in
158159
info "%s: %s" __FUNCTION__ stdout ;
159160
Db.Host_driver.set_active_variant ~__context ~self ~value:Ref.null ;
160161
Db.Host_driver.set_selected_variant ~__context ~self ~value:Ref.null

0 commit comments

Comments
 (0)