Changed deprecated API call

In auth.py,changed /OS-FEDERATION/projects to /auth/projects

Change-Id: Ie763fd328c3c763f19acdecaf54dd93e8ac20961
This commit is contained in:
Parul Sohal 2018-07-02 19:30:59 +00:00
parent 4b5d77da37
commit fd5e5d3e42
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ def get_projects_at_sp(service_provider, user_token):
conf = config.service_providers.get(CONF, service_provider)
unscoped_session = get_unscoped_sp_auth(service_provider, user_token)
r = json.loads(str(unscoped_session.get(
conf.auth_url + "/OS-FEDERATION/projects").text))
conf.auth_url + "/auth/projects").text))
return [project[u'id'] for project in r[u'projects']]