From 7e0e44e1ab3ebb587a8382b4e15f7e0bcfe1aa5b Mon Sep 17 00:00:00 2001 From: Bronius Motekaitis Date: Tue, 2 Dec 2025 13:52:34 -0600 Subject: [PATCH] Adjusts whitespace on conditional output so that resulting file does not contain surperfluous, blank newlines --- templates/backend.tftpl | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/templates/backend.tftpl b/templates/backend.tftpl index e7fe5c8..9075153 100644 --- a/templates/backend.tftpl +++ b/templates/backend.tftpl @@ -1,16 +1,12 @@ terraform { - %{ if use_s3_locking } - required_version = ">= 1.11" - %{ endif } +%{ if use_s3_locking } required_version = ">= 1.11" +%{ endif } backend "s3" { allowed_account_ids = [ "${account_id}" ] region = "${region}" bucket = "${bucket}" key = "terraform-state/main.tfstate" - %{ if !use_s3_locking } - dynamodb_table = "${dynamodb_table}" - %{ else } - use_lockfile = true - %{ endif } - } -} \ No newline at end of file +%{ if !use_s3_locking } dynamodb_table = "${dynamodb_table}" +%{ else } use_lockfile = true +%{ endif } } +}