diff --git a/templates/facts.rb.erb b/templates/facts.rb.erb index 2b4d4bc6..d55a74dd 100644 --- a/templates/facts.rb.erb +++ b/templates/facts.rb.erb @@ -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