Skip to content

Commit 162db89

Browse files
committed
fixup! Replace mongo shell with mongosh
1 parent bab2b9a commit 162db89

File tree

1 file changed

+1
-1
lines changed
  • lib/puppet/provider/mongodb_replset

1 file changed

+1
-1
lines changed

lib/puppet/provider/mongodb_replset/mongo.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def mongo_command(command, host, retries = 4)
384384

385385
def self.mongo_command(command, host = nil, retries = 4)
386386
begin
387-
output = mongo_eval("printjson(#{command})", 'admin', retries, host)
387+
output = mongo_eval("EJSON.stringify(#{command})", 'admin', retries, host)
388388
rescue Puppet::ExecutionFailure => e
389389
Puppet.debug "Got an exception: #{e}"
390390
raise

0 commit comments

Comments
 (0)