-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Ability to handle duplicate sections #85
Comments
Sounds like a simple job of allowing a hash or list of hashes under the section key to me. If a hash emit, if a list duplicate the key and emit, winner winner chicken dinner. My 50 cents... |
dog:
name: 'scruffy'
breed: 'scotty'
cat:
- name: 'tiddles'
breed: 'siamese'
- name: 'puss'
breed: 'ocelot'
|
I would support @spjmurray's solution. I think it is unambiguous. |
Caveat: the behavior for deep merge would need to be documented. If you already have a list and merge a hash, does the hash add to the list or replace it? If you already have a hash and merge a list, same question. |
Oh, this seems to be a duplicate of #42 which has more comments. |
Closing this now that #80 has been merged which should address this use case. |
Agreeably this hurts the head to ponder, but seems it is a valid use case in eg [https://github.com/influxdata/telegraf/tree/master/plugins/inputs/postgresql_extensible]
If duplicates are specified as below, only the last is affected into the final configuration file
The text was updated successfully, but these errors were encountered: