From f0842574c783399a7cbcd358b54fbcd9e05ac619 Mon Sep 17 00:00:00 2001 From: JeremyDec <34273689+JeremyDec@users.noreply.github.com> Date: Wed, 19 Jun 2019 11:26:04 +0200 Subject: [PATCH] fix(pcc.datacenter.zerto): add response transformation for default local vra network (#180) --- ...icatedCloud-datacenter-zerto-single.v6.service.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/dedicatedCloud/datacenter/zerto/single/dedicatedCloud-datacenter-zerto-single.v6.service.js b/src/dedicatedCloud/datacenter/zerto/single/dedicatedCloud-datacenter-zerto-single.v6.service.js index 919cebb2..8cc840ea 100644 --- a/src/dedicatedCloud/datacenter/zerto/single/dedicatedCloud-datacenter-zerto-single.v6.service.js +++ b/src/dedicatedCloud/datacenter/zerto/single/dedicatedCloud-datacenter-zerto-single.v6.service.js @@ -19,7 +19,17 @@ angular.module("ovh-api-services").service("OvhApiDedicatedCloudDatacenterZertoS }, getDefaultLocalVraNetwork: { url: "/dedicatedCloud/:serviceName/datacenter/:datacenterId/disasterRecovery/zertoSingle/defaultLocalVraNetwork", - method: "GET" + method: "GET", + transformResponse: function (resp, headers, status) { + var data = resp; + + if (status === 200) { + data = { + value: angular.fromJson(data) + }; + } + return data; + } } });