[pve-devel] r5597 - pve-access-control/trunk/PVE/API2
svn-commits at proxmox.com
svn-commits at proxmox.com
Wed Feb 23 13:09:44 CET 2011
Author: dietmar
Date: 2011-02-23 13:09:44 +0100 (Wed, 23 Feb 2011)
New Revision: 5597
Modified:
pve-access-control/trunk/PVE/API2/Domains.pm
Log:
use 'realm' instead of 'id'
Modified: pve-access-control/trunk/PVE/API2/Domains.pm
===================================================================
--- pve-access-control/trunk/PVE/API2/Domains.pm 2011-02-23 11:20:24 UTC (rev 5596)
+++ pve-access-control/trunk/PVE/API2/Domains.pm 2011-02-23 12:09:44 UTC (rev 5597)
@@ -31,11 +31,11 @@
items => {
type => "object",
properties => {
- id => { type => 'string' },
+ realm => { type => 'string' },
comment => { type => 'string', optional => 1 },
},
},
- links => [ { rel => 'child', href => "{id}" } ],
+ links => [ { rel => 'child', href => "{realm}" } ],
},
code => sub {
my ($param) = @_;
@@ -46,7 +46,7 @@
foreach my $realm (keys %$cfg) {
my $d = $cfg->{$realm};
- my $entry = { id => $realm, type => $d->{type} };
+ my $entry = { realm => $realm, type => $d->{type} };
$entry->{comment} = $d->{comment} if $d->{comment};
$entry->{default} = 1 if $d->{default};
push @$res, $entry;
More information about the pve-devel
mailing list