From 7405d9121d817346789bed293ecd409f063ffde4 Mon Sep 17 00:00:00 2001 From: Darshit Chanpura Date: Fri, 1 Dec 2023 11:52:01 -0500 Subject: [PATCH] Updates resetState to reset OS to actual value Signed-off-by: Darshit Chanpura --- .../java/org/opensearch/security/tools/democonfig/Installer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/opensearch/security/tools/democonfig/Installer.java b/src/main/java/org/opensearch/security/tools/democonfig/Installer.java index 6f99023f02..6971298a2b 100644 --- a/src/main/java/org/opensearch/security/tools/democonfig/Installer.java +++ b/src/main/java/org/opensearch/security/tools/democonfig/Installer.java @@ -390,6 +390,7 @@ static void resetState() { initsecurity = false; cluster_mode = false; environment = ExecutionEnvironment.DEMO; + OS = System.getProperty("os.name") + " " + System.getProperty("os.version") + " " + System.getProperty("os.arch"); SCRIPT_DIR = null; BASE_DIR = null; OPENSEARCH_CONF_FILE = null;