Fix deprecated interpolation-only expression (#594)

This commit is contained in:
Angel Abad
2019-11-18 18:16:37 +01:00
committed by Max Williams
parent a4117177f6
commit 4f3f5b6733
2 changed files with 2 additions and 1 deletions

View File

@@ -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
}