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
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ touch $HOMEDIR/stackrc
chmod 0600 $HOMEDIR/stackrc
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_PASSWORD=$admin_password
export OS_AUTH_URL=$auth_url