WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH] CA-35945: host-apply-edition CLI command should return

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] CA-35945: host-apply-edition CLI command should return a non-zero value if it fails to apply the edition
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# 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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] CA-35945: host-apply-edition CLI command should return a non-zero value if it fails to apply the edition, Rob Hoes <=