From 4b48563a88e21c38a3d1b3bb80c6e94bd16bcfed Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 2 Jun 2017 14:06:28 +0200 Subject: [PATCH] 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 --- PVE/API2/Replication.pm | 2 +- PVE/API2/ReplicationConfig.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/API2/Replication.pm b/PVE/API2/Replication.pm index b15ad11e..a57237c7 100644 --- a/PVE/API2/Replication.pm +++ b/PVE/API2/Replication.pm @@ -69,7 +69,7 @@ __PACKAGE__->register_method ({ type => "object", properties => {}, }, - links => [ { rel => 'child', href => "{vmid}" } ], + links => [ { rel => 'child', href => "{id}" } ], }, code => sub { my ($param) = @_; diff --git a/PVE/API2/ReplicationConfig.pm b/PVE/API2/ReplicationConfig.pm index 0095bf37..69d56aed 100644 --- a/PVE/API2/ReplicationConfig.pm +++ b/PVE/API2/ReplicationConfig.pm @@ -32,7 +32,7 @@ __PACKAGE__->register_method ({ type => "object", properties => {}, }, - links => [ { rel => 'child', href => "{vmid}" } ], + links => [ { rel => 'child', href => "{id}" } ], }, code => sub { my ($param) = @_;