[pve-devel] [PATCH manager 2/2] use correct field for child link
Dominik Csapak
d.csapak at proxmox.com
Fri Jun 2 14:06:28 CEST 2017
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 at proxmox.com>
---
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 43839c43..71f8406b 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) = @_;
--
2.11.0
More information about the pve-devel
mailing list