From e5a73215ff379d2106afa3a815f9356609996f60 Mon Sep 17 00:00:00 2001 From: Darshit Chanpura Date: Fri, 17 Nov 2023 12:37:12 -0500 Subject: [PATCH] Minor code cleanup Signed-off-by: Darshit Chanpura --- .../tools/democonfig/SecuritySettingsConfigurer.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/opensearch/security/tools/democonfig/SecuritySettingsConfigurer.java b/src/main/java/org/opensearch/security/tools/democonfig/SecuritySettingsConfigurer.java index 8293bb2e98..a5daa579dd 100644 --- a/src/main/java/org/opensearch/security/tools/democonfig/SecuritySettingsConfigurer.java +++ b/src/main/java/org/opensearch/security/tools/democonfig/SecuritySettingsConfigurer.java @@ -217,9 +217,8 @@ static String buildSecurityConfigString() { securityConfigLines.append("plugins.security.check_snapshot_restore_write_privileges: true\n"); securityConfigLines.append("plugins.security.restapi.roles_enabled: [\"all_access\", \"security_rest_api_access\"]\n"); - securityConfigLines.append("plugins.security.system_indices.enabled: true\n" + "plugins.security.system_indices.indices: [") - .append(SYSTEM_INDICES) - .append("]\n"); + securityConfigLines.append("plugins.security.system_indices.enabled: true\n"); + securityConfigLines.append("plugins.security.system_indices.indices: [").append(SYSTEM_INDICES).append("]\n"); if (!isNetworkHostAlreadyPresent(OPENSEARCH_CONF_FILE)) { if (cluster_mode) {