summaryrefslogtreecommitdiffstats
path: root/ci/htmlize/htmlize.py
diff options
context:
space:
mode:
authorSakala Venkata Krishna Rohit <rohitsakala@gmail.com>2018-03-21 18:57:11 +0530
committerSakala Venkata Krishna Rohit <rohitsakala@gmail.com>2018-03-21 19:06:07 +0530
commitea7b2e368d4af7c7dbb8a176cf476918622d7a66 (patch)
tree8694c2ba36d8799a94d092ecef65b03afe064322 /ci/htmlize/htmlize.py
parentb8176c7026e9b7f50905cdad140bd16990eaba29 (diff)
BugFix for testapi automate job
The bug was caused because of change in version of python package. Used inbuilt json function of the requests package to rectify. Change-Id: If71fe96dcffdd26179dd1d05b9536126a1ddaae5
Diffstat (limited to 'ci/htmlize/htmlize.py')
-rw-r--r--ci/htmlize/htmlize.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/htmlize/htmlize.py b/ci/htmlize/htmlize.py
index c37ebc3..135d401 100644
--- a/ci/htmlize/htmlize.py
+++ b/ci/htmlize/htmlize.py
@@ -15,9 +15,9 @@ def main(args):
# Merging two specs
api_response = requests.get(args.api_declaration_url)
- api_response = json.loads(api_response.content)
+ api_response = api_response.json()
resource_response = requests.get(args.resource_listing_url)
- resource_response = json.loads(resource_response.content)
+ resource_response = resource_response.json()
resource_response['models'] = api_response['models']
resource_response['apis'] = api_response['apis']