Skip to content

Commit

Permalink
Use credentials when describing keyspaces in cassandra schema builder (
Browse files Browse the repository at this point in the history
…#1655)

This follows #1635 in order to solve jaegertracing/jaeger-operator#469

Signed-off-by: Emilien Kenler <emilien@cryptact.com>
  • Loading branch information
MiLk authored and yurishkuro committed Jul 5, 2019
1 parent 62cf818 commit 65c8e56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugin/storage/cassandra/schema/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ PASSWORD=${CASSANDRA_PASSWORD:-""}
total_wait=0
while true
do
${CQLSH} ${CQLSH_SSL} ${CQLSH_HOST} -e "describe keyspaces"
if [ -z "$PASSWORD" ]; then
${CQLSH} ${CQLSH_SSL} ${CQLSH_HOST} -e "describe keyspaces"
else
${CQLSH} ${CQLSH_SSL} ${CQLSH_HOST} -u ${USER} -p ${PASSWORD} -e "describe keyspaces"
fi
if (( $? == 0 )); then
break
else
Expand Down

0 comments on commit 65c8e56

Please sign in to comment.