Skip to content

Commit 0ea879d

Browse files
Fix warning on nil tag
Signed-off-by: Colin Leroy-Mira <colin.leroy-mira@unabiz.com>
1 parent f8e8418 commit 0ea879d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/fluent/plugin/prometheus/placeholder_expander.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ def build(placeholder_values)
3939
private
4040

4141
def build_tag(tag)
42+
return [] if tag.nil?
43+
4244
tags = tag.split('.')
4345

4446
placeholders = { '${tag}' => tag }

0 commit comments

Comments
 (0)