Skip to content

Commit ebef08d

Browse files
committed
templates/facts.rb.erb: update URI.open syntax
Fixes #330.
1 parent 540c609 commit ebef08d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/facts.rb.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require 'json'
1414
require 'open-uri'
1515
begin
1616
url = 'http://<%= @uri %>:<%= @port %><%= @contextpath %>/rest/api/2/serverInfo'
17-
info = open(url, &:read)
17+
info = URI.open(url).read
1818
rescue
1919
exit 0
2020
end

0 commit comments

Comments
 (0)