Mercurial > hg > thermostat-ng > web-gateway
changeset 216:638f67045739
Build fix - add closing double quote
This fixes the previous commit, where a closing double quote was omitted when creating a MondoDB query on the fly.
Thanks, jkang for catching this.
(Discussion was on IRC)
author | Simon Tooke <stooke@redhat.com> |
---|---|
date | Tue, 25 Jul 2017 15:49:55 -0400 |
parents | 554b822def15 |
children | 8864f8d6e0a2 |
files | common/mongodb/src/main/java/com/redhat/thermostat/gateway/common/mongodb/executor/MongoExecutor.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/common/mongodb/src/main/java/com/redhat/thermostat/gateway/common/mongodb/executor/MongoExecutor.java Tue Jul 25 14:26:07 2017 -0400 +++ b/common/mongodb/src/main/java/com/redhat/thermostat/gateway/common/mongodb/executor/MongoExecutor.java Tue Jul 25 15:49:55 2017 -0400 @@ -201,7 +201,7 @@ } return isNullOrEmpty(originalQuery) ? sysQuery : sysQuery + ',' + originalQuery; } else { - final String jvmQuery = ThermostatFields.JVM_ID + "==\"" + jvmId ; + final String jvmQuery = ThermostatFields.JVM_ID + "==\"" + jvmId + '"'; final String sysJvmQuery = jvmQuery + (isNullOrEmpty(systemId) ? "" : ',' + ThermostatFields.SYSTEM_ID + "==\"" + systemId + '"'); return isNullOrEmpty(originalQuery) ? sysJvmQuery : sysJvmQuery + ',' + originalQuery; }