lib/ohai/mixin/ec2_metadata.rb in ohai-7.2.0.rc.1 vs lib/ohai/mixin/ec2_metadata.rb in ohai-7.2.0.rc.2
- old
+ new
@@ -120,9 +120,10 @@
end
def fetch_metadata(id='', api_version=nil)
api_version ||= best_api_version
return Hash.new if api_version.nil?
+
metadata = Hash.new
retrieved_metadata = metadata_get(id, api_version)
if retrieved_metadata
retrieved_metadata.split("\n").each do |o|
key = expand_path("#{id}#{o}")