summaryrefslogtreecommitdiff
path: root/src/mongo/shell/utils_auth.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell/utils_auth.js')
-rw-r--r--src/mongo/shell/utils_auth.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mongo/shell/utils_auth.js b/src/mongo/shell/utils_auth.js
index e096e2c8c67..6fd913c963a 100644
--- a/src/mongo/shell/utils_auth.js
+++ b/src/mongo/shell/utils_auth.js
@@ -67,13 +67,11 @@ var authutil;
*/
authutil.asCluster = function(conn, keyfile, action) {
var ex;
- authutil.assertAuthenticate(conn,
- 'local',
- {
- user: '__system',
- mechanism: 'SCRAM-SHA-1',
- pwd: cat(keyfile).replace(/[\011-\015\040]/g, '')
- });
+ authutil.assertAuthenticate(conn, 'local', {
+ user: '__system',
+ mechanism: 'SCRAM-SHA-1',
+ pwd: cat(keyfile).replace(/[\011-\015\040]/g, '')
+ });
try {
return action();