From 09e06a32d51795e6b397afd9a1577fca663ada1d Mon Sep 17 00:00:00 2001 From: Yussuf Shaikh Date: Wed, 7 Oct 2020 10:08:52 +0000 Subject: [PATCH] Fix interpolation-only warnings Fixes #54 Signed-off-by: Yussuf Shaikh --- variables.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/variables.tf b/variables.tf index 43e8ade..013aff3 100644 --- a/variables.tf +++ b/variables.tf @@ -174,10 +174,10 @@ variable "ansible_extra_options" { } locals { - private_key_file = "${var.private_key_file == "" ? "${path.cwd}/data/id_rsa" : "${var.private_key_file}" }" - public_key_file = "${var.public_key_file == "" ? "${path.cwd}/data/id_rsa.pub" : "${var.public_key_file}" }" - private_key = "${var.private_key == "" ? file(coalesce(local.private_key_file, "/dev/null")) : "${var.private_key}" }" - public_key = "${var.public_key == "" ? file(coalesce(local.public_key_file, "/dev/null")) : "${var.public_key}" }" + private_key_file = var.private_key_file == "" ? "${path.cwd}/data/id_rsa" : var.private_key_file + public_key_file = var.public_key_file == "" ? "${path.cwd}/data/id_rsa.pub" : var.public_key_file + private_key = var.private_key == "" ? file(coalesce(local.private_key_file, "/dev/null")) : var.private_key + public_key = var.public_key == "" ? file(coalesce(local.public_key_file, "/dev/null")) : var.public_key }