update client to get the correct endpoint
update client to get the correct endpoint when region name is provided. Story: 2010676 Task: 48618 Test Case: PASS: run software list command with region name SystemController Change-Id: If8c7b5779868d2007819b98ef93ca8457b009aee Signed-off-by: Christopher Souza <Christopher.DeOliveiraSouza@windriver.com>
This commit is contained in:
parent
e8c8b24922
commit
fd9ad3f5c2
@ -1033,7 +1033,7 @@ def get_auth_token_and_endpoint(region_name):
|
||||
sess = session.Session(auth=auth)
|
||||
try:
|
||||
token = auth.get_token(sess)
|
||||
endpoint = auth.get_endpoint(sess, service_type='software',
|
||||
endpoint = auth.get_endpoint(sess, service_type='usm',
|
||||
interface='internal',
|
||||
region_name=region_name)
|
||||
except (exceptions.http.Unauthorized, exceptions.EndpointNotFound) as e:
|
||||
|
Loading…
x
Reference in New Issue
Block a user