From f14829aa77c7ba03de151191a98711ce1b081ba8 Mon Sep 17 00:00:00 2001 From: ammills01 Date: Thu, 14 Jul 2016 12:09:55 -0500 Subject: [PATCH] Updated sizer.js - Custom keyspace name/def fix The keyspace should match what is sent in via the 'keyspace name' parameter and what is being created in the 'keyspace definition' parameter. Currently, the 'keyspace definition' is hard coded to 'autogeneratedtest'. This change uses the same variable that is used for the 'keyspace name' parameter in 'keyspace definition'. --- js/sizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/sizer.js b/js/sizer.js index b48bcf2..519d313 100644 --- a/js/sizer.js +++ b/js/sizer.js @@ -350,7 +350,7 @@ function downloadYaml(filename) { " \n"+ "# The CQL for creating a keyspace (optional if it already exists)\n"+ "keyspace_definition: |\n"+ - " CREATE KEYSPACE autogeneratedtest WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};\n"+ + " CREATE KEYSPACE " + keyspaceName + " WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};\n"+ " \n"+ "# Table name\n"+ "table: "+ tableName +"\n"+