From 72b6e3ef54723d8f283e03d9cb3a2e5f1d0ab879 Mon Sep 17 00:00:00 2001 From: David Hall Date: Thu, 2 May 2019 13:49:21 -0500 Subject: [PATCH] MCOL-1984 add waitPeriod to config items saved during update --- tools/configMgt/autoConfigure.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tools/configMgt/autoConfigure.cpp b/tools/configMgt/autoConfigure.cpp index e87401127..4c21fd6c7 100755 --- a/tools/configMgt/autoConfigure.cpp +++ b/tools/configMgt/autoConfigure.cpp @@ -66,6 +66,7 @@ typedef std::vector PerformanceModuleList; int main(int argc, char *argv[]) { setenv("CALPONT_HOME", "./", 1); + std::cout << "autoConfigure : main() *************" << std::endl; Oam oam; string systemParentOAMModuleName; @@ -326,7 +327,19 @@ int main(int argc, char *argv[]) exit(-1); } - //setup System Language + // WaitPeriod + try + { + string waitPeriod = sysConfigOld->getConfig(SystemSection, "WaitPeriod"); + if (waitPeriod.length() > 0) + { + sysConfigNew->setConfig(SystemSection, "WaitPeriod", waitPeriod); + } + } + catch (...) + { } + + //setup System Language string systemLang = "C"; try { systemLang = sysConfigOld->getConfig(SystemSection, "SystemLang");