kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ewe...@apache.org
Subject kafka git commit: MINOR: Cluster file generator should produce valid json
Date Fri, 13 Jan 2017 18:22:43 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk d25671884 -> 7a61ce4cf


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 <emanuele.cesena@gmail.com>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #2370 from 0x0ece/patch-1


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/7a61ce4c
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/7a61ce4c
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/7a61ce4c

Branch: refs/heads/trunk
Commit: 7a61ce4cf40c0a9c75fab4757722010576d3f18d
Parents: d256718
Author: Emanuele Cesena <emanuele.cesena@gmail.com>
Authored: Fri Jan 13 10:22:38 2017 -0800
Committer: Ewen Cheslack-Postava <me@ewencp.org>
Committed: Fri Jan 13 10:22:38 2017 -0800

----------------------------------------------------------------------
 tests/cluster_file_generator.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/7a61ce4c/tests/cluster_file_generator.sh
----------------------------------------------------------------------
diff --git a/tests/cluster_file_generator.sh b/tests/cluster_file_generator.sh
index 2530a28..7894e74 100644
--- a/tests/cluster_file_generator.sh
+++ b/tests/cluster_file_generator.sh
@@ -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=","
@@ -60,4 +60,4 @@ done
 cat<<EOF
   ]
 }
-EOF
\ No newline at end of file
+EOF


Mime
View raw message