Skip to content
Snippets Groups Projects
Commit 9ee9c1db authored by claudio's avatar claudio
Browse files

[NRRPLT-6711] authentication headers required

Change-Id: I0ed57700d02de6206f6d9a89eb65c140ed08b954
parent 0ea77d8d
No related branches found
No related tags found
No related merge requests found
......@@ -386,15 +386,16 @@ class VirtualCoach(object):
assert isinstance(cloned, bool)
logger.info('Retrieving list of experiments.')
headers = None if self.__oidc_username else self.__storage_headers
if cloned:
url = self.__config['proxy-services']['storage-experiment-list']
response = requests.get(url, headers=self.__storage_headers)
response = requests.get(url, headers=headers)
# return a simple list containing only experiment names since this is the only
# information in the dictionary anyway
return [experiment['name'] for experiment in json.loads(response.content)]
else:
_, response = self.__oidc_client.request(
self.__config['proxy-services']['experiment-list'])
self.__config['proxy-services']['experiment-list'], headers=headers)
return json.loads(response)
def __get_available_server_list(self):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment