Add OS_REGION_NAME when keystone api is >= 2 in rc file
Currently, OS_REGION_NAME is in keystone_admin rc file only when keystone api is < 3. This is incorrect as region name is also meaningful in newer versions and needed in some cases as shown in [1]. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1716434 Change-Id: I45dc6511ee8874b9719be6816062777f2ce371f0
This commit is contained in:
parent
53a73ba0ea
commit
45a43f0a20
|
@ -27,6 +27,7 @@ class packstack::openstackclient ()
|
|||
$rcadmin_common_content = "unset OS_SERVICE_TOKEN
|
||||
export OS_USERNAME=${ost_cl_keystone_admin_username}
|
||||
export OS_PASSWORD='${ost_cl_keystone_admin_pw}'
|
||||
export OS_REGION_NAME=${ost_cl_keystone_region}
|
||||
export OS_AUTH_URL=${ost_cl_ctrl_keystone_url}
|
||||
export PS1='[\\u@\\h \\W(keystone_admin)]\\$ '
|
||||
"
|
||||
|
@ -34,7 +35,6 @@ class packstack::openstackclient ()
|
|||
if $int_api_version < 3 {
|
||||
$rcadmin_content = "${rcadmin_common_content}
|
||||
export OS_TENANT_NAME=admin
|
||||
export OS_REGION_NAME=${ost_cl_keystone_region}
|
||||
"
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue