From: Matthias Goergnes Date: Wed, 26 Jan 2011 17:39:05 +0000 (+0000) Subject: Remove unused variable e in xapi_vm.ml X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5579ac58e32f534589d93fe9b4423f21dce379bb;p=xcp%2Fxen-api.git Remove unused variable e in xapi_vm.ml Signed-off-by: Matthias Goergnes --- diff --git a/ocaml/xapi/xapi_vm.ml b/ocaml/xapi/xapi_vm.ml index 077beda8..7ae0ff1e 100644 --- a/ocaml/xapi/xapi_vm.ml +++ b/ocaml/xapi/xapi_vm.ml @@ -628,7 +628,7 @@ let hard_shutdown ~__context ~vm = let args = { TwoPhase.__context=__context; vm=vm; api_call_name="VM.hard_shutdown"; clean=false } in retry_on_conflict args (of_action action) with - | Api_errors.Server_error(code, _) as e + | Api_errors.Server_error(code, _) when code = Api_errors.vm_bad_power_state -> (* ToDo: How do you test directly if the VM is already shut-down? I hope we are not masking bugs here.