Revision 59ee2e55
Added by Peiman Jafari over 7 years ago
files/foreman-report_v2.rb | ||
---|---|---|
uri = URI.parse(foreman_url)
|
||
http = Net::HTTP.new(uri.host, uri.port)
|
||
if SETTINGS[:report_timeout]
|
||
http.open_timeout = SETTINGS[:report_timeout]
|
||
http.read_timeout = SETTINGS[:report_timeout]
|
||
end
|
||
http.use_ssl = uri.scheme == 'https'
|
Also available in: Unified diff
Add open_timeout to the report and external node script (#527)
Add open_timeout to the report and external node script