# File lib/ohai/plugins/ec2.rb, line 80 def userdata() ec2[:userdata] = nil # assumes the only expected error is the 404 if there's no user-data begin ec2[:userdata] = OpenURI.open_uri("#{EC2_USERDATA_URL}/").read rescue OpenURI::HTTPError end end