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-35368: add support for string-value keys

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] CA-35368: add support for string-value keys
From: Marcus Granado <marcus.granado@xxxxxxxxxx>
Date: Tue, 1 Dec 2009 12:16:47 +0000
Delivery-date: Tue, 01 Dec 2009 04:18:35 -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
1 file changed, 3 insertions(+), 1 deletion(-)
ocaml/idl/ocaml_backend/rbac.ml |    4 +++-


# HG changeset patch
# User Marcus Granado <marcus.granado@xxxxxxxxxx>
# Date 1259669761 0
# Node ID 994723beb3142a90e7247ed5c4cd947bf6e77a83
# Parent  e6185002376e4dc22148b85b4e6c32d498fe67fd
CA-35368: add support for string-value keys

Signed-off-by: Marcus Granado <marcus.granado@xxxxxxxxxxxxx>

diff -r e6185002376e -r 994723beb314 ocaml/idl/ocaml_backend/rbac.ml
--- a/ocaml/idl/ocaml_backend/rbac.ml   Mon Nov 30 16:47:14 2009 +0000
+++ b/ocaml/idl/ocaml_backend/rbac.ml   Tue Dec 01 12:16:01 2009 +0000
@@ -139,7 +139,9 @@
                                        (get_permission_name_of_keys ks vs)
                                else (* found "key" in args *)
                                        match v with
-                                       | Xml.Element("value",_,(Xml.PCData 
key_name_in_args)::[]) ->
+                                       | Xml.Element("value",_,(Xml.PCData 
key_name_in_args)::[]) 
+                                       | 
Xml.Element("value",_,(Xml.Element("string",_,
+                                               (Xml.PCData 
key_name_in_args)::[]))::[]) ->
                                        begin
                                                (*debug "key_name_in_args=%s, 
keys=[%s]" key_name_in_args ((List.fold_left (fun ss s->ss^s^",") "" keys)) ;*)
                                                try 

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] CA-35368: add support for string-value keys, Marcus Granado <=