Improve novaclient initialisation

Following advice from the folk in #openstack-nova, we should make some
small changes to how we use novaclient to prevent a breakage in the
future.

Change-Id: I71795b4267edc76bb8b6c0914521f913b6c643a9
This commit is contained in:
Rob Cresswell 2016-12-20 15:40:16 +00:00
parent e51e30c5fa
commit 0a8094d2fb
1 changed files with 3 additions and 3 deletions

View File

@ -470,9 +470,9 @@ def novaclient(request_auth_params):
auth_url=auth_url,
insecure=INSECURE,
cacert=CACERT,
http_log_debug=settings.DEBUG)
c.client.auth_token = token_id
c.client.management_url = nova_url
http_log_debug=settings.DEBUG,
auth_token=token_id,
bypass_url=nova_url)
return c