summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrishnaa96 <krishna.moorthy6@wipro.com>2021-07-26 11:33:32 +0530
committerkrishnaa96 <krishna.moorthy6@wipro.com>2021-07-26 11:33:32 +0530
commit3923a98d737cf3359657052492f48985d045635e (patch)
treeb6187fae585a2b59bb918248e495aab4ec605934
parente7517139524f20362341a623f047243cd46f9bd0 (diff)
Fix issues in CPS interface
Issue-ID: OPTFRA-971 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: I5c797a5a50ac781e8bcf9f46a386e103b7a67da6
-rw-r--r--conductor/conductor/data/plugins/inventory_provider/cps.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/conductor/conductor/data/plugins/inventory_provider/cps.py b/conductor/conductor/data/plugins/inventory_provider/cps.py
index c92d167..ceb1c90 100644
--- a/conductor/conductor/data/plugins/inventory_provider/cps.py
+++ b/conductor/conductor/data/plugins/inventory_provider/cps.py
@@ -137,9 +137,9 @@ class CPS(object):
def get_cps_response(self, args):
path = self.conf.cps.get_ta_list_url
data = {}
- data['input'] = {'zone_id': args}
+ data['inputParameters'] = {'zone_id': args}
cps_response = self._request('post', path, data=data)
if cps_response is None or cps_response.status_code != 200:
return None
if cps_response:
- return cps_response.json()
+ return cps_response.json().get('coverageAreaTAList')