-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to make config value more stricitive #2616
Comments
In addition, support |
In #2685, I've implemented
I'm now considering this case.
and
so I don't expect
|
Is there any other case that |
What does this expect in this feature? |
Handling for |
Yes but many users think it becomes Other apporch is adding
|
Thanks for your comment.
You mean that the parameter should be treated as "unspecified" (use the default value) if the value is 'nil', don't you? It's an interesting feature. I think it should be treated as a different issue, it's a different feature from #2685. |
+1 @repeatedly Could you tell me your thought? I don't still understand what "support nil" is. |
BTW
Following dirty hacks may be effective for such case...
|
Ruby has Hash#fetch(https://apidock.com/ruby/Hash/fetch) |
Above works? I tested it and fluentd stopped by
No. I show
Currently, I just notice helper method is also one adhoc approach like below:
|
I'm now confirming this concept in another branch: Implementing 'use_nil' seems possible, but 'use_default' seems difficult because default value isn't determined while parsing the config file. It's determined at Configurable::configure which is run after parsing config file (receives a parsed config as an argument). |
Now I've noticed that it's possible by returning ":default" or something from |
I've merged these changes to #2685, since they are based on changes in #2685. |
Is your feature request related to a problem? Please describe.
ref: #2607
Describe the solution you'd like
#2615 (comment)
Additional context
The text was updated successfully, but these errors were encountered: