diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy index 4c4082f94fd..8c7791c133e 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy @@ -719,7 +719,7 @@ class ClusterFormationTasks { unicastHosts.addAll(node.config.otherUnicastHostAddresses.call()) String unicastHost = node.config.unicastTransportUri(node, null, project.ant) if (unicastHost != null) { - unicastHosts.addAll(Arrays.asList(unicastHost.split(","))) + unicastHosts.add(unicastHost) } } String unicastHostsTxt = String.join("\n", unicastHosts)