lib/ohai/plugins/ec2.rb in ohai-15.1.5 vs lib/ohai/plugins/ec2.rb in ohai-15.2.5

- old
+ new

@@ -122,9 +122,10 @@ # fetch_metadata returns IAM security credentials, including the IAM user's # secret access key. We'd rather not have ohai send this information # to the server. # http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html#instancedata-data-categories next if k == "iam" && !hint?("iam") + ec2[k] = v end ec2[:userdata] = fetch_userdata ec2[:account_id] = fetch_dynamic_data["accountId"] ec2[:availability_zone] = fetch_dynamic_data["availabilityZone"]