Skip to content

Commit 1a8b7b4

Browse files
committed
SERVER-8502 Only set authenticationMechanisms if authMechanism is not MONGODB-CR
1 parent a14608d commit 1a8b7b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongo/shell/servers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ function getTestArgs(argArray) {
740740
if (jsTest.options().enableTestCommands) {
741741
argArray.push.apply(argArray, ['--setParameter', "enableTestCommands=1"]);
742742
}
743-
if (jsTest.options().authMechanism) {
743+
if (jsTest.options().authMechanism && jsTest.options().authMechanism != "MONGODB-CR") {
744744
argArray.push.apply(argArray,
745745
['--setParameter',
746746
"authenticationMechanisms=" + jsTest.options().authMechanism]);

0 commit comments

Comments
 (0)