[pve-devel] r5599 - pve-access-control/trunk/PVE/API2

svn-commits at proxmox.com svn-commits at proxmox.com
Wed Feb 23 13:19:32 CET 2011


Author: dietmar
Date: 2011-02-23 13:19:32 +0100 (Wed, 23 Feb 2011)
New Revision: 5599

Modified:
   pve-access-control/trunk/PVE/API2/Role.pm
Log:
s/id/roleid/


Modified: pve-access-control/trunk/PVE/API2/Role.pm
===================================================================
--- pve-access-control/trunk/PVE/API2/Role.pm	2011-02-23 12:15:12 UTC (rev 5598)
+++ pve-access-control/trunk/PVE/API2/Role.pm	2011-02-23 12:19:32 UTC (rev 5599)
@@ -27,10 +27,10 @@
 	items => {
 	    type => "object",
 	    properties => {
-		id => { type => 'string' },
+		roleid => { type => 'string' },
 	    },
 	},
-	links => [ { rel => 'child', href => "{id}" } ],
+	links => [ { rel => 'child', href => "{roleid}" } ],
     },
     code => sub {
 	my ($param) = @_;
@@ -41,7 +41,7 @@
  
 	foreach my $role (keys %{$usercfg->{roles}}) {
 	    my $privs = join(',', sort keys %{$usercfg->{roles}->{$role}});
-	    push @$res, { id => $role, privs => $privs };
+	    push @$res, { roleid => $role, privs => $privs };
 	}
 
 	return $res;




More information about the pve-devel mailing list