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] fix Not_found error in xe snapshot-revert uuid=...

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH] fix Not_found error in xe snapshot-revert uuid=...
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Wed, 7 Apr 2010 11:45:18 +0100
Delivery-date: Wed, 07 Apr 2010 03:42:09 -0700
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 David Scott <dave.scott@xxxxxxxxxxxxx>
# Date 1270637035 -3600
# Node ID 3884cd6ef7f0fa9e2a5377520e641d53c8b25878
# Parent  4b55d8f5ef5acc13d54680a7e98728daf30bc53a
CA-38723: Fix 'xe snapshot-revert uuid=...'

Somehow I missed this one in the previous patch.

Signed-off-by: David Scott <dave.scott@xxxxxxxxxxxxx>

diff -r 4b55d8f5ef5a -r 3884cd6ef7f0 ocaml/xapi/cli_operations.ml
--- a/ocaml/xapi/cli_operations.ml      Wed Apr 07 11:42:09 2010 +0100
+++ b/ocaml/xapi/cli_operations.ml      Wed Apr 07 11:43:55 2010 +0100
@@ -2177,7 +2177,7 @@
   else List.assoc "uuid" params
 
 let snapshot_revert printer rpc session_id params =
-       let snap_uuid = List.assoc "snapshot-uuid" params in
+  let snap_uuid = get_snapshot_uuid params in
        let snap_ref = Client.VM.get_by_uuid rpc session_id snap_uuid in
        Client.VM.revert ~rpc ~session_id ~snapshot:snap_ref
 
1 file changed, 1 insertion(+), 1 deletion(-)
ocaml/xapi/cli_operations.ml |    2 +-


Attachment: xen-api.hg.patch
Description: Text Data

_______________________________________________
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] fix Not_found error in xe snapshot-revert uuid=..., David Scott <=