-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Collection merge does not work as expected #24236
Comments
more finding.. |
Hi @aryni01, Thanks for taking the time to file an issue. While the As for the Thanks! |
haha.. closed the issue without even very good explanation, a merge by definition is merging two or more objects and becoming bigger object, there is no such thing as winning in merging, may be in software engineering it is, as two companies merge, most of the people from smaller companies get laid off, very realistic approach... but still not quite right because in my example the people from bigger company are laid off.. |
Sorry, maybe I can phrase it differently. The A function that recursively merges nested maps and/or objects would need to be a different function entirely. A new function is not entirely out of the question, but should be filed as a proposal with the desired behavior and use cases. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
Terraform Configuration Files
...
Debug Output
Crash Output
Expected Behavior
While merging two or more collections, the output is not an expected output, for example with:
merge({"x"={"a"="b", "c"="d"}}, {"x"={"e"="f"}})
The result should be {"x"={"a"="b", "c"="d", "e"="f"}}
Actual Behavior
result is:
{"x" = {"e" = "f"}}
Steps to Reproduce
This can be reproduced by just terraform console
Additional Context
References
The text was updated successfully, but these errors were encountered: