Add auth version for legacy OpenStack clients

Adding this environment variable expands Identity v3 coverage for legacy
OpenStack CLI clients. This corrects the authentication URLs used even
if v2 is still being used.

Change-Id: I68197ffd12d71a437c482f13520b83cb08d4c9de
Closes-Bug: #1495685
This commit is contained in:
Julian Montez 2015-09-14 15:40:50 -05:00 committed by Jesse Pretorius
parent 88c948c455
commit a47ca31221

View File

@ -22,8 +22,10 @@ export OS_PROJECT_DOMAIN_NAME={{ openrc_os_domain_name }}
# For openstackclient # For openstackclient
{% if openrc_os_auth_url.endswith('v3') %} {% if openrc_os_auth_url.endswith('v3') %}
export OS_IDENTITY_API_VERSION=3 export OS_IDENTITY_API_VERSION=3
export OS_AUTH_VERSION=3
{% else %} {% else %}
export OS_IDENTITY_API_VERSION=2 export OS_IDENTITY_API_VERSION=2
export OS_AUTH_VERSION=2
{% endif %} {% endif %}
{% if openrc_insecure | bool %} {% if openrc_insecure | bool %}