Fix AAI request url for NxI Termination 54/116554/1
authorhariharan97 <rh20085046@wipro.com>
Mon, 4 Jan 2021 07:27:38 +0000 (12:57 +0530)
committerhariharan97 <rh20085046@wipro.com>
Mon, 4 Jan 2021 07:27:38 +0000 (12:57 +0530)
Issue-ID: OPTFRA-890

Signed-off-by: hariharan97 <rh20085046@wipro.com>
Change-Id: I4e11419f260d04f02b8b77eb0924bc92ad881991

osdf/adapters/aai/fetch_aai_data.py

index 634aa04..d869882 100644 (file)
@@ -45,7 +45,7 @@ def get_aai_data(request_json, osdf_config):
     aai_req_url = aai_url + config["aaiServiceInstanceUrl"] + nxi_id + "?depth=2"
 
     try:
-        response = requests.get(aai_req_url, aai_headers, auth=HTTPBasicAuth("AAI", "AAI"), verify=False)
+        response = requests.get(aai_req_url, headers=aai_headers, auth=HTTPBasicAuth("AAI", "AAI"), verify=False)
     except RequestException as e:
         raise AAIException("Request exception was encountered {}".format(e))