lib/fluent/plugin/ec2_metadata.rb in fluent-plugin-ec2-metadata-0.1.1 vs lib/fluent/plugin/ec2_metadata.rb in fluent-plugin-ec2-metadata-0.1.2
- old
+ new
@@ -13,9 +13,10 @@
# <record></record> directive
@map = {}
conf.elements.select { |element| element.name == 'record' }.each { |element|
element.each_pair { |k, v|
+ element.has_key?(k) # to suppress unread configuration warning
@map[k] = v
}
}
@placeholder_expander = PlaceholderExpander.new(log)