Skip to content

Commit

Permalink
Merge pull request #2023 from okkez/fix-no-method-error
Browse files Browse the repository at this point in the history
Avoid NoMethodError while running Fluent::Config::ConfigureProxy#dump_config_definition
  • Loading branch information
repeatedly authored Jun 19, 2018
2 parents c49959c + 01004cb commit 5184481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/config/configure_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def dump_config_definition
end
# Overwrite by config_set_default
@defaults.each do |name, value|
if @params.key?(name) || @argument.first == name
if @params.key?(name) || (@argument && @argument.first == name)
dumped_config[name][:default] = value
else
dumped_config[name] = { default: value }
Expand Down

0 comments on commit 5184481

Please sign in to comment.