Remove carriage return when getting user token

make-cert failed because keystone return a '\r' at the end of token

Change-Id: I2f65756e53bf7d5b3ac407c7b2a6c5bcba02454f
This commit is contained in:
ArchiFleKs 2017-02-07 17:15:49 +01:00
parent 77113e9fd8
commit e154970558
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ write_files:
#trust is introduced in Keystone v3 version
AUTH_URL=${AUTH_URL/v2.0/v3}
USER_TOKEN=`curl -k -s -i -X POST -H "Content-Type: application/json" -d @auth.json \
$AUTH_URL/auth/tokens | grep X-Subject-Token | awk '{print $2}'`
$AUTH_URL/auth/tokens | grep X-Subject-Token | awk '{print $2}' | tr -d '\r'`
rm -rf auth.json

View File

@ -103,7 +103,7 @@ write_files:
#trust is introduced in Keystone v3 version
AUTH_URL=${AUTH_URL/v2.0/v3}
USER_TOKEN=`curl -k -s -i -X POST -H "Content-Type: application/json" -d @auth.json \
$AUTH_URL/auth/tokens | grep X-Subject-Token | awk '{print $2}'`
$AUTH_URL/auth/tokens | grep X-Subject-Token | awk '{print $2}' | tr -d '\r'`
rm -rf auth.json