We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 802eb9a commit cbf9c7bCopy full SHA for cbf9c7b
lib/puppet/parser/functions/loadjson.rb
@@ -44,7 +44,7 @@ module Puppet::Parser::Functions
44
url = args[0]
45
end
46
begin
47
- contents = OpenURI.open_uri(url, http_options)
+ contents = OpenURI.open_uri(url, http_options).read
48
rescue OpenURI::HTTPError => e
49
res = e.io
50
warning("Can't load '#{url}' HTTP Error Code: '#{res.status[0]}'")
0 commit comments