Skip to content
Permalink
Browse files

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

Config: Return String Instead Of Buffer For Docker Secrets
  • Loading branch information...
SISheogorath committed Sep 3, 2019
2 parents f08fcd3 + 0be7843 commit 529075fd67ad0d41ba0b25a7de69817dd4cd76fb
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/config/dockerSecret.js
@@ -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
}

0 comments on commit 529075f

Please sign in to comment.
You can’t perform that action at this time.