From 8dfd17347af8a68d4641d87b87c2a5d596c83e9c Mon Sep 17 00:00:00 2001 From: Angel Abad Date: Thu, 14 Nov 2019 17:10:10 +0100 Subject: [PATCH] Fix deprecated interpolation-only expression --- CHANGELOG.md | 1 + kubectl.tf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 057ff39dc8..32c9f6a3a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ project adheres to [Semantic Versioning](http://semver.org/). ### Changed - Updated instance_profile_names and instance_profile_arns outputs to also consider launch template as well as asg (by @ankitwal) +- Fix deprecated interpolation-only expression (by @angelabad) # History diff --git a/kubectl.tf b/kubectl.tf index 5a70828f0d..c7b86d4698 100644 --- a/kubectl.tf +++ b/kubectl.tf @@ -1,6 +1,6 @@ resource "local_file" "kubeconfig" { count = var.write_kubeconfig ? 1 : 0 content = data.template_file.kubeconfig.rendered - filename = "${substr(var.config_output_path, -1, 1) == "/" ? "${var.config_output_path}kubeconfig_${var.cluster_name}" : var.config_output_path}" + filename = substr(var.config_output_path, -1, 1) == "/" ? "${var.config_output_path}kubeconfig_${var.cluster_name}" : var.config_output_path }