fix(core): update

This commit is contained in:
Philipp Kunz 2019-01-14 22:42:24 +01:00
parent 3577fa22e1
commit ff9302f745

View File

@ -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];
}
}