[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] [PATCH] CA-35945: host-apply-edition CLI command should return a non-zero value if it fails to apply the edition


  • To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
  • From: Rob Hoes <rob.hoes@xxxxxxxxxx>
  • Date: Wed, 13 Jan 2010 12:17:12 +0000
  • Delivery-date: Wed, 13 Jan 2010 04:17:10 -0800
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

# HG changeset patch
# User Rob Hoes <rob.hoes@xxxxxxxxxx>
CA-35945: host-apply-edition CLI command should return a non-zero value if it 
fails to apply the edition

Signed-off-by: Rob Hoes <rob.hoes@xxxxxxxxxx>

diff -r 650e531c3fe0 ocaml/xapi/cli_operations.ml
--- a/ocaml/xapi/cli_operations.ml      Tue Jan 05 17:07:05 2010 +0000
+++ b/ocaml/xapi/cli_operations.ml      Tue Jan 12 17:21:57 2010 +0000
@@ -2558,7 +2558,8 @@
     if alerts = [] then
       printer (Cli_printer.PStderr "Internal error: the licensing daemon was 
not found.")
     else
-      List.iter print_if_checkout_error alerts
+      List.iter print_if_checkout_error alerts;
+    raise (ExitWithError 1)
   | e -> raise e
 
 let host_evacuate printer rpc session_id params =

Attachment: ca-35945
Description: Text document

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.