Skip to content
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

functions/stdlib/merge: return an empty object when all inputs are null #82

Merged
merged 2 commits into from
Dec 16, 2020

Commits on Dec 11, 2020

  1. stdlib/merge: return an empty object when all inputs are null

    It seems intuitive for merge() to return an empty object when the inputs
    are null (or omitted entirely) - returning an error would likely break
    many terraform configurations, and returning an empty object rather than
    null seems more consistent with the documented behavior (though it is
    not explicit!).
    
    I dug through the commit history and compared terraform's documentation,
    post pre- and post-hcl2, and did not find any clues as to why it was
    returning null rather than an empty object. I feel like this is an
    acceptable breaking change, but am certainly open to other opinions.
    mildwonkey committed Dec 11, 2020
    Configuration menu
    Copy the full SHA
    a7d3a90 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2020

  1. Configuration menu
    Copy the full SHA
    82a8b7a View commit details
    Browse the repository at this point in the history