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

svn-commits at proxmox.com svn-commits at proxmox.com
Wed Feb 23 13:22:41 CET 2011


Author: dietmar
Date: 2011-02-23 13:22:41 +0100 (Wed, 23 Feb 2011)
New Revision: 5601

Modified:
   pve-access-control/trunk/PVE/API2/Group.pm
Log:
s/id/groupid/


Modified: pve-access-control/trunk/PVE/API2/Group.pm
===================================================================
--- pve-access-control/trunk/PVE/API2/Group.pm	2011-02-23 12:21:17 UTC (rev 5600)
+++ pve-access-control/trunk/PVE/API2/Group.pm	2011-02-23 12:22:41 UTC (rev 5601)
@@ -42,10 +42,10 @@
 	items => {
 	    type => "object",
 	    properties => {
-		id => { type => 'string' },
+		groupid => { type => 'string' },
 	    },
 	},
-	links => [ { rel => 'child', href => "{id}" } ],
+	links => [ { rel => 'child', href => "{groupid}" } ],
     },
     code => sub {
 	my ($param) = @_;
@@ -56,7 +56,7 @@
  
 	foreach my $group (keys %{$usercfg->{groups}}) {
 	    my $entry = &$extract_group_data($usercfg->{groups}->{$group});
-	    $entry->{id} = $group;
+	    $entry->{groupid} = $group;
 	    push @$res, $entry;
 	}
 




More information about the pve-devel mailing list