From e1ff2af4923ddcf7a5215e370832106851c4f503 Mon Sep 17 00:00:00 2001 From: LDevOps Date: Wed, 26 Feb 2020 13:04:15 +0100 Subject: [PATCH] Changing the tagset detection (no required for the beginning of the phrase) so that the tag can be searched for in a not simple value --- lib/fluent/plugin/ec2_metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fluent/plugin/ec2_metadata.rb b/lib/fluent/plugin/ec2_metadata.rb index b689046..6661047 100644 --- a/lib/fluent/plugin/ec2_metadata.rb +++ b/lib/fluent/plugin/ec2_metadata.rb @@ -96,7 +96,7 @@ def get_header() end def set_tag(ec2_metadata) - if @map.values.any? { |v| v.match(/^\${tagset_/) } || @output_tag =~ /\${tagset_/ + if @map.values.any? { |v| v.match(/\${tagset_/) } || @output_tag =~ /\${tagset_/ if @aws_key_id and @aws_sec_key ec2 = Aws::EC2::Client.new(