Skip to content

Commit 559e256

Browse files
committed
Use Xapi_globs.host_update_dir in pool_update.resync_host
The path to updates in the file system is controlled by global variable Xapi_globs.host_update_dir but it was not used and "/var/update" was used directly. This commit makes sure the prefix is taken from the global variable. Signed-off-by: Christian Lindig <[email protected]>
1 parent 3762445 commit 559e256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml/xapi/xapi_pool_update.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ let detach_attached_updates __context =
458458
)
459459

460460
let resync_host ~__context ~host =
461-
let update_applied_dir = "/var/update/applied" in
461+
let update_applied_dir = Filename.concat Xapi_globs.host_update_dir "applied" in
462462
if Sys.file_exists update_applied_dir then begin
463463
debug "pool_update.resync_host scanning directory %s for applied updates" update_applied_dir;
464464
let updates_applied = try Array.to_list (Sys.readdir update_applied_dir) with _ -> [] in

0 commit comments

Comments
 (0)