Skip to content

Commit 07c0b40

Browse files
committed
Add debug info
1 parent 07a368c commit 07c0b40

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/puppet/provider/mongodb.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ def self.db_ismaster
146146
res = mongosh_cmd(db, conn_string, 'db.isMaster().ismaster').to_s.chomp if mongoshrc_file && res =~ %r{Authentication failed}
147147
end
148148

149+
Puppet.warning("Are we on the master? #{res}")
150+
149151
res.eql?('true')
150152
end
151153

0 commit comments

Comments
 (0)