From bef14be5e67d9c1b056b70c72da08949962c1820 Mon Sep 17 00:00:00 2001 From: 1000TurquoisePogs Date: Tue, 2 Apr 2024 11:13:13 -0400 Subject: [PATCH] Handle null to blank for configmgr update Signed-off-by: 1000TurquoisePogs --- bin/libs/config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/libs/config.ts b/bin/libs/config.ts index d1cafe5771..3f53488e2f 100644 --- a/bin/libs/config.ts +++ b/bin/libs/config.ts @@ -190,7 +190,8 @@ export function generateInstanceEnvFromYamlConfig(haInstance: string) { componentFileArray.push(`ZWE_configs_${key}=${envs['ZWE_components_'+componentAlpha+'_'+key]}`); } }); - + + componentFileArray = componentFileArray.map((row)=> { return row.endsWith('=null') ? row.substring(0, row.length-5)+'=' : row }); const componentFileContent = componentFileArray.join('\n'); rc = xplatform.storeFileUTF8(`${folderName}/.instance-${haInstance}.env`, xplatform.AUTO_DETECT, componentFileContent); if (rc) { @@ -200,6 +201,7 @@ export function generateInstanceEnvFromYamlConfig(haInstance: string) { } }); + envFileArray = envFileArray.map((row)=> { return row.endsWith('=null') ? row.substring(0, row.length-5)+'=' : row }); let envFileContent = envFileArray.join('\n'); let rc = xplatform.storeFileUTF8(`${zwePrivateWorkspaceEnvDir}/.instance-${haInstance}.env`, xplatform.AUTO_DETECT, envFileContent); if (rc) {