Skip to content

Commit 98fa9f5

Browse files
committed
fixup! fixup! fixup! Replace mongo shell with mongosh
1 parent 6519f5b commit 98fa9f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/mongodb.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def self.db_ismaster
143143
begin
144144
res = mongosh_cmd(db, conn_string, cmd_ismaster).to_s.split(%r{\n}).last.chomp
145145
rescue StandardError
146-
res = mongosh_cmd(db, conn_string, 'db.isMaster().ismaster').to_s.chomp if mongorc_file && res =~ %r{Authentication failed}
146+
res = mongosh_cmd(db, conn_string, 'db.isMaster().ismaster').to_s.chomp if mongoshrc_file && res =~ %r{Authentication failed}
147147
end
148148

149149
res.eql?('true')

0 commit comments

Comments
 (0)