We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 540c609 commit ebef08dCopy full SHA for ebef08d
1 file changed
templates/facts.rb.erb
@@ -14,7 +14,7 @@ require 'json'
14
require 'open-uri'
15
begin
16
url = 'http://<%= @uri %>:<%= @port %><%= @contextpath %>/rest/api/2/serverInfo'
17
- info = open(url, &:read)
+ info = URI.open(url).read
18
rescue
19
exit 0
20
end
0 commit comments