Skip to content

Commit d1c3c13

Browse files
dpatrickmorgante
andauthored
Remove file function wrapper from ssh_auth_key variable (terraform-google-modules#577)
Co-authored-by: Morgante Pell <[email protected]>
1 parent c05c48e commit d1c3c13

File tree

1 file changed

+1
-1
lines changed
  • modules/k8s-operator-crd-support

1 file changed

+1
-1
lines changed

modules/k8s-operator-crd-support/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ locals {
1818
cluster_endpoint = "https://${var.cluster_endpoint}"
1919
token = data.google_client_config.default.access_token
2020
cluster_ca_certificate = data.google_container_cluster.primary.master_auth.0.cluster_ca_certificate
21-
private_key = var.create_ssh_key && var.ssh_auth_key == null ? tls_private_key.k8sop_creds[0].private_key_pem : file(var.ssh_auth_key)
21+
private_key = var.create_ssh_key && var.ssh_auth_key == null ? tls_private_key.k8sop_creds[0].private_key_pem : var.ssh_auth_key
2222
k8sop_creds_secret_key = var.secret_type == "cookiefile" ? "cookie_file" : var.secret_type
2323
should_download_manifest = var.operator_path == null ? true : false
2424
manifest_path = local.should_download_manifest ? "${path.root}/.terraform/tmp/config-management-operator.yaml" : var.operator_path

0 commit comments

Comments
 (0)