Skip to content

Commit

Permalink
include get_guest_metrics in the try/with block
Browse files Browse the repository at this point in the history
Signed-off-by: Marcello Seri <[email protected]>
  • Loading branch information
Marcello Seri committed Oct 7, 2016
1 parent 22bc6dd commit 9ca1f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocaml/xapi/xapi_xenops.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1500,8 +1500,8 @@ let update_vm ~__context id =
let update_pv_drivers_detected () =
Opt.iter
(fun (_, state) ->
let gm = Db.VM.get_guest_metrics ~__context ~self in
try
try
let gm = Db.VM.get_guest_metrics ~__context ~self in
debug "xenopsd event: Updating VM %s PV drivers detected %b" id state.pv_drivers_detected;
Db.VM_guest_metrics.set_PV_drivers_detected ~__context ~self:gm ~value:state.pv_drivers_detected;
Db.VM_guest_metrics.set_PV_drivers_up_to_date ~__context ~self:gm ~value:state.pv_drivers_detected
Expand Down

0 comments on commit 9ca1f62

Please sign in to comment.