MINOR: Cluster file generator should produce valid json
This way, if the ${KAFKA_NUM_CONTAINERS} is changed in docker/run_tests.sh, the json is still valid
Author: Emanuele Cesena
Reviewers: Ewen Cheslack-Postava
Closes from 0x0ece/patch-1
@@ -37,7 +37,7 @@ EOF
for K in $(seq -w 02 ${KAFKA_NUM_CONTAINERS}); do
KNODE="knode${K}"
- if [ $K -eq 12 ]; then
+ if [ $K -eq ${KAFKA_NUM_CONTAINERS} ]; then
SUFFIX=""
else
SUFFIX=","
