Skip to content

Commit 9aca6c5

Browse files
committed
Revert "Provide credentials when auth is enabled"
This reverts commit 4b98d53.
1 parent 0b40e06 commit 9aca6c5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/puppet/provider/mongodb.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,6 @@ def self.mongosh_cmd(db, host, cmd)
9797
args.push('--tlsAllowInvalidHostnames') if tls_invalid_hostnames(config)
9898
end
9999

100-
if auth_enabled(config)
101-
args += ['--username', 'admin']
102-
args += ['--password', 'password']
103-
end
104-
105100
args += ['--eval', cmd]
106101
Puppet.warning('Mongosh arguments')
107102
Puppet.warning(args)

0 commit comments

Comments
 (0)