From 51b5edb04fd1576e83896f49e28601664da89a05 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 21 Feb 2023 12:48:06 +0100 Subject: [PATCH] hmm fix --- apps/api/src/lib/services/handlers.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/apps/api/src/lib/services/handlers.ts b/apps/api/src/lib/services/handlers.ts index 7db1df3e0..d721d1472 100644 --- a/apps/api/src/lib/services/handlers.ts +++ b/apps/api/src/lib/services/handlers.ts @@ -50,16 +50,7 @@ export async function startService(request: FastifyRequest, fa const config = {}; for (const s in template.services) { let newEnvironments = [] - if (arm && template.services[s]?.environmentArm?.length > 0) { - for (const environment of template.services[s].environmentArm) { - let [env, ...value] = environment.split("="); - value = value.join("=") - if (!value.startsWith('$$secret') && value !== '') { - newEnvironments.push(`${env}=${value}`) - } - } - } - if (!arm && template.services[s]?.environment?.length > 0) { + if (template.services[s]?.environment?.length > 0) { for (const environment of template.services[s].environment) { let [env, ...value] = environment.split("="); value = value.join("=")