Skip to content

Correction option validate_tls in elastic_rest #1239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/puppet/provider/elastic_rest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def self.rest(http,
timeout = 10,
username = nil,
password = nil,
validate_tls: true)
validate_tls = true)

if username && password
req.basic_auth username, password
Expand Down Expand Up @@ -103,7 +103,7 @@ def self.api_objects(protocol = 'http',
http.send method, arg if arg && http.respond_to?(method)
end

response = rest http, req, timeout, username, password, validate_tls: validate_tls
response = rest http, req, timeout, username, password, validate_tls

results = []

Expand Down Expand Up @@ -231,7 +231,7 @@ def flush
resource[:timeout],
resource[:username],
resource[:password],
validate_tls: resource[:validate_tls]
resource[:validate_tls]
)

# Attempt to return useful error output
Expand Down
Loading