File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,6 @@ let find_vdi ~__context ~label =
209
209
file. *)
210
210
let trigger ~domid ~uuid ~timeout =
211
211
let open Ezxenstore_core.Xenstore in
212
- let module Watch = Ezxenstore_core. Watch in
213
212
let control = Printf. sprintf " /local/domain/%Ld/control/sysprep" domid in
214
213
let domain = Printf. sprintf " /local/domain/%Ld" domid in
215
214
with_xs (fun xs ->
@@ -219,17 +218,19 @@ let trigger ~domid ~uuid ~timeout =
219
218
debug " %s: notified domain %Ld" __FUNCTION__ domid ;
220
219
try
221
220
(* wait for sysprep to start, then domain to dissapear *)
222
- Watch. (
221
+ Ezxenstore_core. Watch. (
223
222
wait_for ~xs ~timeout: 5.0
224
223
(value_to_become (control // " action" ) " running" )
225
224
) ;
226
225
debug " %s: sysprep is runnung; waiting for sysprep to finish"
227
226
__FUNCTION__ ;
228
- Watch. (wait_for ~xs ~timeout (key_to_disappear (control // " action" ))) ;
227
+ Ezxenstore_core.Watch. (
228
+ wait_for ~xs ~timeout (key_to_disappear (control // " action" ))
229
+ ) ;
229
230
debug " %s sysprep is finished" __FUNCTION__ ;
230
- Watch. (wait_for ~xs ~timeout (key_to_disappear domain)) ;
231
+ Ezxenstore_core. Watch. (wait_for ~xs ~timeout (key_to_disappear domain)) ;
231
232
true
232
- with Watch. Timeout _ ->
233
+ with Ezxenstore_core. Watch.Timeout _ ->
233
234
debug " %s: sysprep timeout" __FUNCTION__ ;
234
235
false
235
236
)
You can’t perform that action at this time.
0 commit comments