fixed one more ConfigProcessor usage [#MOBMET-7044]

This commit is contained in:
Alexey Vasiliev 2017-11-22 11:06:09 +03:00 committed by alexey-milovidov
parent 1114a749e3
commit bc3b20edac

View File

@ -452,8 +452,11 @@ void LocalServer::setupUsers()
if (config().has("users_config") || config().has("config-file") || Poco::File("config.xml").exists()) if (config().has("users_config") || config().has("config-file") || Poco::File("config.xml").exists())
{ {
auto users_config_path = config().getString("users_config", config().getString("config-file", "config.xml")); const auto users_config_path = config().getString("users_config", config().getString("config-file", "config.xml"));
users_config = ConfigProcessor().loadConfig(users_config_path).configuration; ConfigProcessor config_processor(users_config_path);
const auto loaded_config = config_processor.loadConfig();
config_processor.savePreprocessedConfig(loaded_config);
users_config = loaded_config.configuration;
} }
else else
{ {