Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: inconsistent types in conditional
2024/07/29 06:57:53 Error: Inconsistent conditional result types 2024/07/29 06:57:53 2024/07/29 06:57:53 on /home/AzDevOps_azpcontainer/.terraform/modules/stage2/modules/messaging/web_pubsub/private_endpoint.tf line 11, in module "private_endpoint": 2024/07/29 06:57:53 11: private_dns = can(each.value.private_dns) ? var.remote_objects.private_dns : {} 2024/07/29 06:57:53 ├──────────────── 2024/07/29 06:57:53 │ each.value.private_dns is object with 2 attributes 2024/07/29 06:57:53 │ var.remote_objects.private_dns is object with 5 attributes 2024/07/29 06:57:53 2024/07/29 06:57:53 The true and false result expressions must have consistent types. The 'true' 2024/07/29 06:57:53 value includes object attribute "devops", which is absent in the 'false' We don't need the condition here, as the private_dns variable will only act as a resource reference and the decision making will be done by the var.settings.private_dns parameter
- Loading branch information