We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af00c7a + dc4c969 commit 2388621Copy full SHA for 2388621
test/test-clusters/src/main/java/org/elasticsearch/test/cluster/local/LocalClusterSpec.java
@@ -212,7 +212,12 @@ public Path getConfigDir() {
212
}
213
214
public boolean isSecurityEnabled() {
215
- return Boolean.parseBoolean(getSetting("xpack.security.enabled", getVersion().onOrAfter("8.0.0") ? "true" : "false"));
+ return Boolean.parseBoolean(
216
+ getSetting(
217
+ "xpack.security.enabled",
218
+ getVersion().equals(Version.fromString("0.0.0")) || getVersion().onOrAfter("8.0.0") ? "true" : "false"
219
+ )
220
+ );
221
222
223
public boolean isRemoteClusterServerEnabled() {
0 commit comments