diff --git a/libraries/prometheus_helper.rb b/libraries/prometheus_helper.rb index 4830d42..8a2d9f8 100644 --- a/libraries/prometheus_helper.rb +++ b/libraries/prometheus_helper.rb @@ -2,9 +2,7 @@ def generate_flags config = '' node['prometheus']['flags'].each do |flag_key, flag_value| - unless flag_value == '' - config += "-#{flag_key}=#{flag_value} " - end + config += "-#{flag_key}=#{flag_value} " if flag_value != '' end config end diff --git a/spec/unit/recipes/source_spec.rb b/spec/unit/recipes/source_spec.rb index d5c39e9..85ee2d7 100644 --- a/spec/unit/recipes/source_spec.rb +++ b/spec/unit/recipes/source_spec.rb @@ -87,5 +87,4 @@ expect(chef_run).to render_file("#{chef_run.node['bluepill']['conf_dir']}/prometheus.pill") end end - end