diff options
author | Sheogorath | 2019-09-03 18:11:47 +0200 |
---|---|---|
committer | GitHub | 2019-09-03 18:11:47 +0200 |
commit | 529075fd67ad0d41ba0b25a7de69817dd4cd76fb (patch) | |
tree | 294810514e98f29902a4fb1981096c31ad76c900 /lib/config | |
parent | f08fcd30fbe859fa636f494bb949e00ab2cff095 (diff) | |
parent | 0be784351d4352df1f87d623de0503a38e376c79 (diff) |
Merge pull request #168 from dargmuesli/fix/docker-secret-buffer
Config: Return String Instead Of Buffer For Docker Secrets
Diffstat (limited to 'lib/config')
-rw-r--r-- | lib/config/dockerSecret.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/config/dockerSecret.js b/lib/config/dockerSecret.js index 69e0de36..7ff6506f 100644 --- a/lib/config/dockerSecret.js +++ b/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 } |