Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CA-91927: Xapi_xenops event thread should update VM.allowed_operation…

…s on master instead of localhost.

Signed-off-by: John Else <john.else@citrix.com>
  • Loading branch information...
commit a52f64b2d71b04045fbee2eda56233a7f714df57 1 parent e6a4b29
@johnelse johnelse authored jonludlam committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  ocaml/xapi/xapi_xenops.ml
View
3  ocaml/xapi/xapi_xenops.ml
@@ -998,7 +998,8 @@ let update_vm ~__context id =
end;
Xenops_cache.update_vm id (Opt.map snd info);
if !should_update_allowed_operations then
- Xapi_vm_lifecycle.update_allowed_operations ~__context ~self;
+ Helpers.call_api_functions ~__context
+ (fun rpc session_id -> XenAPI.VM.update_allowed_operations ~rpc ~session_id ~self);
end
with e ->
error "xenopsd event: Caught %s while updating VM: has this VM been removed while this host is offline?" (string_of_exn e)
Please sign in to comment.
Something went wrong with that request. Please try again.