summaryrefslogtreecommitdiff
path: root/jstests/auth/show_log_auth.js
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2013-10-10 20:04:15 -0400
committerSpencer T Brody <spencer@10gen.com>2013-10-11 18:14:12 -0400
commitf0c6cebd73410c711ff2fc1167f7bded692dad1e (patch)
treed01f5609418387d75701adcd373fd59caa571353 /jstests/auth/show_log_auth.js
parent100fc6d278597a4e119ac70b07b0f7c38cd2c4ab (diff)
downloadmongo-f0c6cebd73410c711ff2fc1167f7bded692dad1e.tar.gz
SERVER-10794 Maintain backwards-compatible form of addUser for one more release
Diffstat (limited to 'jstests/auth/show_log_auth.js')
-rw-r--r--jstests/auth/show_log_auth.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/auth/show_log_auth.js b/jstests/auth/show_log_auth.js
index 57ed37abc5e..35847b30489 100644
--- a/jstests/auth/show_log_auth.js
+++ b/jstests/auth/show_log_auth.js
@@ -6,7 +6,7 @@ var baseName = "jstests_show_log_auth";
var m = startMongod( "--auth", "--port", port, "--dbpath", "/data/db/" + baseName, "--nohttpinterface", "--bind_ip", "127.0.0.1" , "--nojournal" , "--smallfiles" );
var db = m.getDB( "admin" );
-db.addUser( "admin" , "pass", jsTest.adminUserRoles );
+db.addUser({user: "admin" , pwd: "pass", roles: jsTest.adminUserRoles});
// Temporarily capture this shell's print() output
var oldprint = print, printed = [];