Update url_for parameter for domain policy check

Now that the keystoneauth package is being used, we need to
update calls to url_for to use the "interface" parameter instead
of "endpoint_type".

Change-Id: I441e9f085569f76115d235a210ebb5f296208c69
Closes-Bug: #1532308
This commit is contained in:
Brad Pokorny 2016-01-07 21:26:48 -08:00
parent ad98c9dd5b
commit 8011e9cda0
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ def _domain_to_credentials(request, user):
return None
domain_user = auth_user.create_user_from_token(
request, auth_user.Token(domain_auth_ref),
domain_auth_ref.service_catalog.url_for(endpoint_type=None))
domain_auth_ref.service_catalog.url_for(interface=None))
user._domain_credentials = _user_to_credentials(domain_user)
# uses the domain_id associated with the domain_user