Skip to content

Commit

Permalink
Convert convert_case variable type to boolean (cloudposse#12)
Browse files Browse the repository at this point in the history
* Convert convert_case variable type to boolean

* Format code
  • Loading branch information
rohityadav225 authored and aknysh committed Dec 4, 2018
1 parent ba9e85e commit a873805
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ locals {
original_tags = "${join(var.delimiter, compact(concat(list(var.namespace, var.stage, var.name), var.attributes)))}"
}

locals {
convert_case = "${var.convert_case == "true" ? true : false }"
}

locals {
transformed_tags = "${local.convert_case == true ? lower(local.original_tags) : local.original_tags}"
}
Expand Down

0 comments on commit a873805

Please sign in to comment.