From 86442b78c2d309558a400810cb6a7b9e877e2447 Mon Sep 17 00:00:00 2001 From: Darren Murray Date: Tue, 23 Jan 2024 17:04:46 +0000 Subject: [PATCH] chore: set local var module name Signed-off-by: Darren Murray --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 9e789fe..ac91c07 100644 --- a/main.tf +++ b/main.tf @@ -14,7 +14,7 @@ locals { gar_apis = var.required_gar_apis version_file = "${abspath(path.module)}/VERSION" - module_name = basename(abspath(path.module)) + module_name = "terraform-gcp-gar" module_version = fileexists(local.version_file) ? file(local.version_file) : "" } @@ -95,4 +95,4 @@ resource "lacework_integration_gar" "default" { data "lacework_metric_module" "lwmetrics" { name = local.module_name version = local.module_version -} \ No newline at end of file +}