From ff9302f7452576dcf1d1721e9d8eb3840d0ad5ea Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 14 Jan 2019 22:42:24 +0100 Subject: [PATCH] fix(core): update --- ts/qenv.classes.qenv.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/qenv.classes.qenv.ts b/ts/qenv.classes.qenv.ts index f7da900..649f23d 100644 --- a/ts/qenv.classes.qenv.ts +++ b/ts/qenv.classes.qenv.ts @@ -111,7 +111,7 @@ export class Qenv { const availableSecrets = plugins.smartfile.fs.listAllItemsSync('/run/secrets'); for (const secret of availableSecrets) { if (secret.includes('secret.json') && !dockerSecret) { - const secretObject = plugins.smartfile.fs.toObjectSync('/run/secrets/secret.json'); + const secretObject = plugins.smartfile.fs.toObjectSync(`/run/secrets/${secret}`); dockerSecret = secretObject[requiredEnvVar]; } }