Merge "Explicitly specify the region_name when instanciating a client"

This commit is contained in:
Zuul 2019-01-24 15:58:07 +00:00 committed by Gerrit Code Review
commit a3484eb744
1 changed files with 8 additions and 1 deletions

View File

@ -35,11 +35,18 @@ def cloudkittyclient(request):
project_id=request.user.project_id,
domain_id=request.user.domain_id,
)
adapter_options = {
'region_name': request.user.services_region,
}
return ck_client.Client(
'1',
auth=auth,
cacert=cacert,
insecure=insecure)
insecure=insecure,
adapter_options=adapter_options,
)
def identify(what, name=False, key=None):