summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Thelemann2019-09-03 17:58:31 +0200
committerJonas Thelemann2019-09-03 17:58:58 +0200
commit0be784351d4352df1f87d623de0503a38e376c79 (patch)
tree9bf2d232f622dbc654c2ccff7ca2f80e322ed418
parent3d9c97fc651b680ae839f1a9b6fe3db78ae708e0 (diff)
Docker Secrets: Use Encoding Parameter Directly
Signed-off-by: Jonas Thelemann <e-mail@jonas-thelemann.de>
-rw-r--r--lib/config/dockerSecret.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/config/dockerSecret.js b/lib/config/dockerSecret.js
index 901ff2f5..bd397f58 100644
--- a/lib/config/dockerSecret.js
+++ b/lib/config/dockerSecret.js
@@ -7,7 +7,7 @@ const basePath = path.resolve('/var/run/secrets/')
function getSecret (secret) {
const filePath = path.join(basePath, secret)
- if (fs.existsSync(filePath)) return fs.readFileSync(filePath).toString('utf8')
+ if (fs.existsSync(filePath)) return fs.readFileSync(filePath, 'utf-8')
return undefined
}