Make X-Subject-Token search case unsensitive
USER_TOKEN variable is empty because the grep expression is not ignoring case and certs are not created. Change-Id: I175cb2d4c64d5f7024b13ce11c1184029f63c317 Task: 26189 Story: 2003671
This commit is contained in:
parent
d9a43d87d0
commit
d3bf6a4977
@ -68,7 +68,7 @@ EOF
|
||||
content_type='Content-Type: application/json'
|
||||
url="$AUTH_URL/auth/tokens"
|
||||
USER_TOKEN=`curl $VERIFY_CA -s -i -X POST -H "$content_type" -d "$auth_json" $url \
|
||||
| grep X-Subject-Token | awk '{print $2}' | tr -d '[[:space:]]'`
|
||||
| grep -i X-Subject-Token | awk '{print $2}' | tr -d '[[:space:]]'`
|
||||
|
||||
# Get CA certificate for this cluster
|
||||
curl $VERIFY_CA -X GET \
|
||||
|
@ -106,7 +106,7 @@ EOF
|
||||
content_type='Content-Type: application/json'
|
||||
url="$AUTH_URL/auth/tokens"
|
||||
USER_TOKEN=`curl $VERIFY_CA -s -i -X POST -H "$content_type" -d "$auth_json" $url \
|
||||
| grep X-Subject-Token | awk '{print $2}' | tr -d '[[:space:]]'`
|
||||
| grep -i X-Subject-Token | awk '{print $2}' | tr -d '[[:space:]]'`
|
||||
|
||||
# Get CA certificate for this cluster
|
||||
curl $VERIFY_CA -X GET \
|
||||
|
Loading…
Reference in New Issue
Block a user