Skip to content

Commit

Permalink
templates/facts.rb.erb: update URI.open syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kenyon committed Feb 14, 2021
1 parent 540c609 commit ebef08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/facts.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require 'json'
require 'open-uri'
begin
url = 'http://<%= @uri %>:<%= @port %><%= @contextpath %>/rest/api/2/serverInfo'
info = open(url, &:read)
info = URI.open(url).read
rescue
exit 0
end
Expand Down

0 comments on commit ebef08d

Please sign in to comment.