From e1cd6838e5dcd4edf1cfb9e5091ca1cc3281b335 Mon Sep 17 00:00:00 2001 From: Mitar Milanovic Date: Mon, 18 Dec 2023 10:53:36 +0100 Subject: [PATCH] read dtconfig.json file from ./serverless_function_source_code folder --- .gitignore | 3 +++ core/configuration/dt_config_file_reader.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index de67df5..ef6e881 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,6 @@ # Go workspace file go.work + +# IDE miscellaneous +.idea/ \ No newline at end of file diff --git a/core/configuration/dt_config_file_reader.go b/core/configuration/dt_config_file_reader.go index 3364f9d..f853ef0 100644 --- a/core/configuration/dt_config_file_reader.go +++ b/core/configuration/dt_config_file_reader.go @@ -58,7 +58,7 @@ type jsonConfigFileReader struct { // ReadConfigFromFile looks for a config file "dtconfig.json" in the current directory and attempts to parse it. // Returns an error if the file can't be read or the parsing fails. func (j *jsonConfigFileReader) readConfigFromFile() (fileConfig, error) { - return j.readConfigFromFileByPath("./dtconfig.json") + return j.readConfigFromFileByPath("./serverless_function_source_code/dtconfig.json") } func (j *jsonConfigFileReader) readConfigFromFileByPath(filePath string) (fileConfig, error) {