From: Rok Strnisa Date: Tue, 12 Oct 2010 09:51:55 +0000 (+0100) Subject: CA-41317: Error message if a host doesn't power on is poor --- FIXED. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=fc8e558cb66a85b4d2cc83b451c6e5a0c06ac85d;p=xcp%2Fxen-api.git CA-41317: Error message if a host doesn't power on is poor --- FIXED. Changed the error message to something more reasonable, although keeping it of "internal" type. Signed-off-by: Rok Strnisa --- diff --git a/ocaml/xapi/xapi_host.ml b/ocaml/xapi/xapi_host.ml index 35e02ed0..91eaa937 100644 --- a/ocaml/xapi/xapi_host.ml +++ b/ocaml/xapi/xapi_host.ml @@ -509,7 +509,7 @@ let power_on ~__context ~host = let result = Xapi_plugins.call_plugin (Context.get_session_id __context) Constants.power_on_plugin Constants.power_on_fn [ "remote_host_uuid", Db.Host.get_uuid ~__context ~self:host ] in - if result <> "True" then failwith (Printf.sprintf "Poweron plugin reports: %s" result) + if result <> "True" then failwith (Printf.sprintf "The host failed to power on.") let dmesg ~__context ~host = Vmopshelpers.with_xc (fun xc -> Xc.readconsolering xc)