From 4ea8f1c3ee204d257684d2613bec69ef2b297360 Mon Sep 17 00:00:00 2001 From: Yuta Iwama Date: Wed, 18 Dec 2019 18:12:43 +0900 Subject: [PATCH] fixup! Add StaticConfigAnalysis Signed-off-by: Yuta Iwama --- lib/fluent/static_config_analysis.rb | 4 ++++ test/test_static_config_analysis.rb | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/lib/fluent/static_config_analysis.rb b/lib/fluent/static_config_analysis.rb index 692503b6af..2ed3efa06c 100644 --- a/lib/fluent/static_config_analysis.rb +++ b/lib/fluent/static_config_analysis.rb @@ -128,6 +128,10 @@ def static_label_analyse(conf) ret = [] conf.elements(name: 'label').each do |e| name = e.arg + if name.empty? + raise ConfigError, 'Missing symbol argument on