Merge "undercloud/stackrc: unset OS_* variables"

This commit is contained in:
Zuul 2018-09-24 14:44:34 +00:00 committed by Gerrit Code Review
commit ab24d472f1

View File

@ -12,6 +12,9 @@ touch $HOMEDIR/stackrc
chmod 0600 $HOMEDIR/stackrc chmod 0600 $HOMEDIR/stackrc
cat > $HOMEDIR/stackrc <<-EOF_CAT cat > $HOMEDIR/stackrc <<-EOF_CAT
# Clear any old environment that may conflict.
for key in \$( set | awk -F= '/^OS_/ {print \$1}' ); do unset "\${key}" ; done
export OS_AUTH_TYPE=password export OS_AUTH_TYPE=password
export OS_PASSWORD=$admin_password export OS_PASSWORD=$admin_password
export OS_AUTH_URL=$auth_url export OS_AUTH_URL=$auth_url