lib/ohai/plugins/ec2.rb in ohai-8.22.1 vs lib/ohai/plugins/ec2.rb in ohai-8.23.0

- old
+ new

@@ -94,9 +94,10 @@ # 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"] # ASCII-8BIT is equivalent to BINARY in this case if ec2[:userdata] && ec2[:userdata].encoding.to_s == "ASCII-8BIT" Ohai::Log.debug("Plugin EC2: Binary UserData Found. Storing in base64") ec2[:userdata] = Base64.encode64(ec2[:userdata]) end