Skip to content

Commit

Permalink
Use boolean value in condition
Browse files Browse the repository at this point in the history
This PR is a follow-up of PR 118.

This is the exact same changeset than #137 but for the `create_db_subnet_group`
variable.
  • Loading branch information
dud225 committed Jul 16, 2019
1 parent 348bb8a commit 1fbcf53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
db_subnet_group_name = "${coalesce(var.db_subnet_group_name, module.db_subnet_group.this_db_subnet_group_id)}"
enable_create_db_subnet_group = "${var.db_subnet_group_name == "" ? var.create_db_subnet_group : 0}"
enable_create_db_subnet_group = "${var.db_subnet_group_name == "" ? var.create_db_subnet_group : false}"

parameter_group_name = "${coalesce(var.parameter_group_name, var.identifier)}"
parameter_group_name_id = "${coalesce(var.parameter_group_name, module.db_parameter_group.this_db_parameter_group_id)}"
Expand Down

0 comments on commit 1fbcf53

Please sign in to comment.