Skip to content

Commit

Permalink
Merge pull request #306 from madgik/dev/506/exareme_nodes_cannot_have…
Browse files Browse the repository at this point in the history
…_similar_names

Fix for exareme not using consul properly when having nodes with simi…
  • Loading branch information
ThanKarab authored Jul 7, 2021
2 parents 3abdbc9 + 6aae9a9 commit 858dacc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ public static class NodeData {
// Get the available pathologies of the node from CONSUL.
Gson gson = new Gson();
try {
String nodePathologiesPathsJson = searchConsulKeys(getConsulDataPath() + "/" + nodeName);
// IMPORTANT The "/" at the end of the nodeName is needed, otherwise the query will respond with
// all the nodes that have the prefix of "nodeName"
String nodePathologiesPathsJson = searchConsulKeys(getConsulDataPath() + "/" + nodeName + "/");
if (nodePathologiesPathsJson == null) {
return;
}
Expand Down

0 comments on commit 858dacc

Please sign in to comment.