diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-10-10 20:04:15 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-10-11 18:14:12 -0400 |
commit | f0c6cebd73410c711ff2fc1167f7bded692dad1e (patch) | |
tree | d01f5609418387d75701adcd373fd59caa571353 /jstests/sharding/auth_add_shard.js | |
parent | 100fc6d278597a4e119ac70b07b0f7c38cd2c4ab (diff) | |
download | mongo-f0c6cebd73410c711ff2fc1167f7bded692dad1e.tar.gz |
SERVER-10794 Maintain backwards-compatible form of addUser for one more release
Diffstat (limited to 'jstests/sharding/auth_add_shard.js')
-rw-r--r-- | jstests/sharding/auth_add_shard.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/auth_add_shard.js b/jstests/sharding/auth_add_shard.js index de518b1ab7d..ce770e65f10 100644 --- a/jstests/sharding/auth_add_shard.js +++ b/jstests/sharding/auth_add_shard.js @@ -33,7 +33,7 @@ if (user) { } else { print("adding user"); - mongos.getDB(adminUser.db).addUser(adminUser.username, adminUser.password, jsTest.adminUserRoles); + mongos.getDB(adminUser.db).addUser({user: adminUser.username, pwd: adminUser.password, roles: jsTest.adminUserRoles}); } //login as admin user |