Skip to content

Commit 7959023

Browse files
authored
Merge pull request #1239 from phaedriel/rest_validate_tls_false
Correction option validate_tls in elastic_rest
2 parents a7970af + fca8598 commit 7959023

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/puppet/provider/elastic_rest.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def self.rest(http,
3333
timeout = 10,
3434
username = nil,
3535
password = nil,
36-
validate_tls: true)
36+
validate_tls = true)
3737

3838
if username && password
3939
req.basic_auth username, password
@@ -103,7 +103,7 @@ def self.api_objects(protocol = 'http',
103103
http.send method, arg if arg && http.respond_to?(method)
104104
end
105105

106-
response = rest http, req, timeout, username, password, validate_tls: validate_tls
106+
response = rest http, req, timeout, username, password, validate_tls
107107

108108
results = []
109109

@@ -231,7 +231,7 @@ def flush
231231
resource[:timeout],
232232
resource[:username],
233233
resource[:password],
234-
validate_tls: resource[:validate_tls]
234+
resource[:validate_tls]
235235
)
236236

237237
# Attempt to return useful error output

0 commit comments

Comments
 (0)