From 719266017f9040dc26264b1aa13d883a5736480a Mon Sep 17 00:00:00 2001 From: Matthias Hinrichs Date: Thu, 17 Jul 2025 00:09:51 +0200 Subject: [PATCH] added file path to root --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 7bd467c..4b71d65 100644 --- a/main.tf +++ b/main.tf @@ -157,7 +157,7 @@ resource "rancher2_cluster_v2" "cluster" { machine_selector_config { config = yamlencode({ cloud-provider-name = "harvester" - cloud-provider-config = file("${path.module}/${var.cluster_name}-${var.cluster_environment}-kubeconfig") + cloud-provider-config = file("${path.root}/${var.cluster_name}-${var.cluster_environment}-kubeconfig") }) }