Skip to content

Commit

Permalink
Fix the num_suffix_format expression; remove the erroneous hyphen
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan craig committed Jun 10, 2020
1 parent 8e26c60 commit eb4e479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ resource "aws_instance" "this" {

tags = merge(
{
"Name" = var.instance_count > 1 || var.use_num_suffix ? format("%s-${ var.num_suffix_format }", var.name, count.index + 1) : var.name
"Name" = var.instance_count > 1 || var.use_num_suffix ? format("%s${ var.num_suffix_format }", var.name, count.index + 1) : var.name
},
var.tags,
)

volume_tags = merge(
{
"Name" = var.instance_count > 1 || var.use_num_suffix ? format("%s-${ var.num_suffix_format }", var.name, count.index + 1) : var.name
"Name" = var.instance_count > 1 || var.use_num_suffix ? format("%s${ var.num_suffix_format }", var.name, count.index + 1) : var.name
},
var.volume_tags,
)
Expand Down

0 comments on commit eb4e479

Please sign in to comment.