Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Invalid value for "inputMap" parameter: must have map or object type. #10

Closed
orgads opened this issue Feb 25, 2024 · 1 comment
Closed

Comments

@orgads
Copy link

orgads commented Feb 25, 2024

I've been using deepmerge for long time, and it works fine on all the cases I had so far.

Today I got a strange failure, and after narrowing it down, I was able to create a minimal example that reproduces the issue. It looks similar to #2, but there are no nulls in my case.

locals {
  obj = {
    arr = [
      {
        foo = {}
        bar = "bar"
      },
      {
        foo = {}
        baz = "baz"
      },
    ]
  }
}

module "secrets-merge" {
  source = "Invicton-Labs/deepmerge/null"
  maps = [
    {},
    local.obj
  ]
}
│ Error: Invalid function argument
│
│   on .terraform\modules\secrets-merge\depth.tf line 43, in locals:
│   43:           for key in keys(item["value"]) :
│     ├────────────────
│     │ item["value"] is tuple with 2 elements
│
│ Invalid value for "inputMap" parameter: must have map or object type.
╵
╷
│ Error: Invalid function argument
│
│   on .terraform\modules\secrets-merge\depth.tf line 55, in locals:
│   55:           for key in keys(item["value"]) :
│     ├────────────────
│     │ item["value"] is tuple with 2 elements
│
│ Invalid value for "inputMap" parameter: must have map or object type.
@KyleKotowick
Copy link
Contributor

Fixed in v0.1.6.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants