You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
╷
│ Error: Inconsistent conditional result types
│
│ on ../../modules/container-definition/main.tf line 20, in locals:
│ 20: linux_parameters = var.enable_execute_command ? merge({ "initProcessEnabled" : true }, var.linux_parameters) : var.linux_parameters
│ ├────────────────
│ │ var.enable_execute_command is false
│ │ var.linux_parameters is object with 1 attribute "capabilities"
│
│ The true and false result expressions must have consistent types. The 'true' value includes object attribute "initProcessEnabled", which is absent in the 'false' value.
╵
I cloned your repo, added the lines to your complete example, ran init then plan. No prior cache, no integrations such as workspaces.
Expected behavior
I expect to be allowed to pass linux_parameters map.
Actual behavior
Inconsistent values result.
Terminal Output Screenshot(s)
Additional context
Likely introduced in #127
If I'm using var.linux_parameters wrong in my example (which is entirely possible) it might be worth adding that to your "complete" example.
The text was updated successfully, but these errors were encountered:
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.
Description
Terraform returns the error "Inconsistent conditional result types" when passing var.linux_parameters.
Versions
Module version [Required]: 5.7.0
Terraform version: 1.6.4
Reproduction Code [Required]
Steps to reproduce the behavior:
I have added the following to your "complete" example above.
This returns the following:
I cloned your repo, added the lines to your complete example, ran init then plan. No prior cache, no integrations such as workspaces.
Expected behavior
I expect to be allowed to pass linux_parameters map.
Actual behavior
Inconsistent values result.
Terminal Output Screenshot(s)
Additional context
Likely introduced in #127
If I'm using var.linux_parameters wrong in my example (which is entirely possible) it might be worth adding that to your "complete" example.
The text was updated successfully, but these errors were encountered: