Skip to content

Commit

Permalink
#296 removing the copadoEnvironmentVariables from the environment var…
Browse files Browse the repository at this point in the history
…iables, once we will not use them in here anymore
  • Loading branch information
Daniel Ventura committed Dec 20, 2022
1 parent 522ade8 commit 9a6edd6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions copado-function/app/Init.fn.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ CONFIG.target_mid = null;
CONFIG.repoUrl = process.env.repoUrl;
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;

/**
* main method that combines runs this function
Expand Down Expand Up @@ -89,10 +85,7 @@ async function run() {
throw ex;
}

CONFIG.copadoEnvironmentVariables = JSON.parse(CONFIG.copadoEnvironmentVariables);

Log.debug(CONFIG);

// ensure we got SFMC credentials for our source BU
if (!CONFIG.credentials[CONFIG.credentialNameSource]) {
Log.error(`No credentials found for source (${CONFIG.credentialNameSource})`);
Expand Down
1 change: 0 additions & 1 deletion copado-function/app/environments/Init.env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ 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 array, example: [{"BU_NAME":[{"ENV_VARIABLE_NAME":"ENV_VARIABLE_CONTENT"}]}]

## generic
credentialName="UPDATE ME"
Expand Down

0 comments on commit 9a6edd6

Please sign in to comment.