Skip to content

"Error in function call" when enabled = false #42

@syphernl

Description

@syphernl

Describe the Bug

After upgrading to the changes in #41 (v0.19.0) with enabled = false running this module results in getting an error:

╷
│ Error: Error in function call
│ 
│   on .terraform/modules/ses/main.tf line 45, in locals:
│   45:   ses_group_name = coalesce(var.ses_group_name, module.this.id)
│     ├────────────────
│     │ module.this.id is ""
│     │ var.ses_group_name is ""
│ 
│ Call to function "coalesce" failed: no non-null, non-empty-string
│ arguments.

It seems that the enabled is not adhered in this particular calculation.

Expected Behavior

No error, since the module is not enabled nothing should be created/generated.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Set enabled = false
  2. Error shown

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions