Skip to content

Commit

Permalink
chore: set local var module name (#29)
Browse files Browse the repository at this point in the history
Signed-off-by: Darren Murray <[email protected]>
  • Loading branch information
dmurray-lacework authored Jan 23, 2024
1 parent e4f563d commit 6769f36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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) : ""
}

Expand Down Expand Up @@ -95,4 +95,4 @@ resource "lacework_integration_gar" "default" {
data "lacework_metric_module" "lwmetrics" {
name = local.module_name
version = local.module_version
}
}

0 comments on commit 6769f36

Please sign in to comment.