use correct field for child link

namely id instead of vmid, so that the child links are working in the
api inspector and pvesh

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2017-06-02 14:06:28 +02:00 committed by Dietmar Maurer
parent f5b53d4c31
commit 4b48563a88
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ __PACKAGE__->register_method ({
type => "object", type => "object",
properties => {}, properties => {},
}, },
links => [ { rel => 'child', href => "{vmid}" } ], links => [ { rel => 'child', href => "{id}" } ],
}, },
code => sub { code => sub {
my ($param) = @_; my ($param) = @_;

View File

@ -32,7 +32,7 @@ __PACKAGE__->register_method ({
type => "object", type => "object",
properties => {}, properties => {},
}, },
links => [ { rel => 'child', href => "{vmid}" } ], links => [ { rel => 'child', href => "{id}" } ],
}, },
code => sub { code => sub {
my ($param) = @_; my ($param) = @_;