mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-31 19:21:05 +02:00
Set argument properly
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
de3ff9b135
commit
d5d69b5dc7
@ -98,7 +98,7 @@ class Fluentd
|
||||
end
|
||||
|
||||
def config_argument(name, type = ActiveModel::Type::Value.new, **options)
|
||||
config_param(name, **options)
|
||||
config_param(name, type, **options)
|
||||
self._argument_name = name
|
||||
end
|
||||
|
||||
|
@ -23,7 +23,11 @@ class Fluentd
|
||||
self._value_types[name] = _definition[:value_types] if _definition.key?(:value_types)
|
||||
self._symbolize_keys = _definition[:symbolize_keys] if _definition.key?(:symbolize_keys)
|
||||
else
|
||||
config_param(_param_name, _definition[:type], **_definition.except(:type))
|
||||
if _definition[:argument]
|
||||
config_argument(_param_name, _definition[:type], **_definition.except(:type))
|
||||
else
|
||||
config_param(_param_name, _definition[:type], **_definition.except(:type))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user