[BUG] Terramate panics when using ternary expression with tm_hcl_expression()
function
#724
Labels
bug
Something isn't working
tm_hcl_expression()
function
#724
Describe the bug
Terramate seems to panic when running
generate
with a ternary expression mixed with thetm_hcl_expression()
function.Example:
To Reproduce
Use the next configuration
and run
terramate generate
Expected behavior
The above expression should return
database = module.rds.db_instance_database_name
whenglobal.module_rds_enabled = true
ordatabase = module.rds_aurora.cluster_database_name
whenglobal.module_rds_enabled = false
Log Output
Logs from panic:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: