From 8e76cd5b5bc178af537fd810063e1ec6427551ad Mon Sep 17 00:00:00 2001 From: Daniel Ventura Date: Thu, 15 Dec 2022 16:29:14 +0000 Subject: [PATCH] #296 - updating logic to use json array instead of json attributes --- copado-function/app/Init.fn.js | 2 +- copado-function/app/environments/Init.env-sample | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/copado-function/app/Init.fn.js b/copado-function/app/Init.fn.js index c15f665..7754210 100644 --- a/copado-function/app/Init.fn.js +++ b/copado-function/app/Init.fn.js @@ -60,7 +60,7 @@ CONFIG.downloadBUs = process.env.downloadBUs === 'false' ? false : true; CONFIG.gitPush = process.env.gitPush === 'false' ? false : true; CONFIG.copadoEnvironmentVariables = process.env.copadoEnvironmentVariables === undefined - ? '{}' + ? '[]' : process.env.copadoEnvironmentVariables; /** diff --git a/copado-function/app/environments/Init.env-sample b/copado-function/app/environments/Init.env-sample index aa7d4ba..0d8adeb 100644 --- a/copado-function/app/environments/Init.env-sample +++ b/copado-function/app/environments/Init.env-sample @@ -2,7 +2,7 @@ repoUrl="UPDATE ME" # url debug="UPDATE ME" # true or false downloadBUs="UPDATE ME" # true or false gitPush="UPDATE ME" # true or false -copadoEnvironmentVariables="UPDATE ME" # json, example: {"BU_NAME":[{"ENV_VARIABLE_NAME":"ENV_VARIABLE_CONTENT"}]} +copadoEnvironmentVariables="UPDATE ME" # json array, example: [{"BU_NAME":[{"ENV_VARIABLE_NAME":"ENV_VARIABLE_CONTENT"}]}] ## generic credentialName="UPDATE ME"