Skip to content

Commit 27b3d30

Browse files
authored
Fix merging of #81077 onto #81082 (#81500)
While merging the changes of #81077 onto #81082, a break statement was unnecessarily removed from the loop that attempts to work through all available addresses in an enrollment token in order to talk to the existing node. That would mean that we would iterate all addresses unintentionally and unnecessarily even when we had already received a reply.
1 parent 807b914 commit 27b3d30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

x-pack/plugin/security/cli/src/main/java/org/elasticsearch/xpack/security/cli/AutoConfigureNode.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ protected void execute(Terminal terminal, OptionSet options, Environment env) th
294294
() -> null,
295295
CommandLineHttpClient::responseBuilder
296296
);
297+
break;
297298
} catch (Exception e) {
298299
terminal.errorPrint(
299300
Terminal.Verbosity.NORMAL,

0 commit comments

Comments
 (0)