]> xenbits.xensource.com Git - xcp/xen-api.git/commitdiff
CA-41317: Error message if a host doesn't power on is poor --- FIXED.
authorRok Strnisa <rok.strnisa@citrix.com>
Tue, 12 Oct 2010 09:51:55 +0000 (10:51 +0100)
committerRok Strnisa <rok.strnisa@citrix.com>
Tue, 12 Oct 2010 09:51:55 +0000 (10:51 +0100)
Changed the error message to something more reasonable, although keeping it
of "internal" type.

Signed-off-by: Rok Strnisa <rok.strnisa@citrix.com>
ocaml/xapi/xapi_host.ml

index 35e02ed007ef5b4c0a1576ad507686b70241b580..91eaa93799152fe42f9ff86a7273d289697a70eb 100644 (file)
@@ -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)