diff --git a/driver-web/src/main/java/io/nosqlbench/driver/webdriver/CommandTemplate.java b/driver-web/src/main/java/io/nosqlbench/driver/webdriver/CommandTemplate.java index 3def7a47f..76f989094 100644 --- a/driver-web/src/main/java/io/nosqlbench/driver/webdriver/CommandTemplate.java +++ b/driver-web/src/main/java/io/nosqlbench/driver/webdriver/CommandTemplate.java @@ -28,7 +28,9 @@ public class CommandTemplate { public CommandTemplate(StmtDef stmt, boolean canonicalize) { this.name = stmt.getName(); - String prefixed = "command=" + stmt.getStmt(); + String prefixed = stmt.getStmt(); + prefixed = (prefixed.startsWith("command=") ? prefixed : "command=" + prefixed); + Map cmdMap = ParamsParser.parse(prefixed, canonicalize); Map paramsMap = stmt.getParamsAsValueType(String.class); paramsMap.forEach((k,v) -> {