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:
parent
88c948c455
commit
a47ca31221
@ -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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user