Skip to content

Commit

Permalink
Print invalid keyspace value on error
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
Yuri Shkuro authored and Isaac Hier committed Nov 1, 2017
1 parent f82bdc2 commit 67c5226
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/storage/cassandra/schema/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ else
fi

keyspace=${KEYSPACE:-"jaeger_v1_${datacenter}"}
if [[ $keyspace =~ [^a-zA-Z0-9_] ]]; then usage "invalid characters in KEYSPACE parameter, please use letters, digits or underscores(a-zA-Z0-9_)"; fi

if [[ $keyspace =~ [^a-zA-Z0-9_] ]]; then
usage "invalid characters in KEYSPACE=$keyspace parameter, please use letters, digits or underscores"
fi

>&2 cat <<EOF
Using template file $template with parameters:
Expand Down

0 comments on commit 67c5226

Please sign in to comment.