Merge pull request #168 from dargmuesli/fix/docker-secret-buffer

Config: Return String Instead Of Buffer For Docker Secrets
This commit is contained in:
Sheogorath 2019-09-03 18:11:47 +02:00 committed by GitHub
commit 529075fd67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ const basePath = path.resolve('/run/secrets/')
function getSecret (secret) {
const filePath = path.join(basePath, secret)
if (fs.existsSync(filePath)) return fs.readFileSync(filePath)
if (fs.existsSync(filePath)) return fs.readFileSync(filePath, 'utf-8')
return undefined
}