Skip to content

Commit cffc601

Browse files
committed
Merge pull request voxpupuli#277 from noni73/master
Fixed deprecation warning for use of configtimeout
2 parents 38a51ec + fd12b09 commit cffc601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/util/mongodb_validator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def initialize(mongodb_resource_name, mongodb_server, mongodb_port)
3131
#
3232
# @return true if the connection is successful, false otherwise.
3333
def attempt_connection
34-
Timeout::timeout(Puppet[:configtimeout]) do
34+
Timeout::timeout(Puppet[:http_connect_timeout]) do
3535
begin
3636
TCPSocket.new(@mongodb_server, @mongodb_port).close
3737
true

0 commit comments

Comments
 (0)