From 53c1271475b0ae2414edb68eb45b88a7d0444204 Mon Sep 17 00:00:00 2001 From: phanes Date: Sun, 23 Jan 2022 02:38:32 -0500 Subject: [PATCH] fixed interpolation for exec. context --- src/loaders/abstract/Conf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/loaders/abstract/Conf.cpp b/src/loaders/abstract/Conf.cpp index 21e073e..3950995 100644 --- a/src/loaders/abstract/Conf.cpp +++ b/src/loaders/abstract/Conf.cpp @@ -110,6 +110,7 @@ Conf::Conf(std::string filename, int LOG_LEVEL ): JSON_Loader(LOG_LEVEL ), slog( if (this->get_string(jval_s, "execution_context") != 0 ) { throw ConfigLoadException("execution_context string is not set in the config file supplied: " + filename); } else { + interpolate( this->execution_context ); if ( ! is_dir( jval_s ) ) { throw ConfigLoadException( "The execution context supplied is an invalid directory."); } else { this->execution_context = jval_s; } @@ -118,7 +119,7 @@ Conf::Conf(std::string filename, int LOG_LEVEL ): JSON_Loader(LOG_LEVEL ), slog( interpolate( this->units_path ); interpolate( this->logs_path ); - interpolate( this->execution_context ); + };