Skip to content

Commit

Permalink
chore: set local var module name (#56)
Browse files Browse the repository at this point in the history
Signed-off-by: Darren Murray <darren.murray@lacework.net>
  • Loading branch information
dmurray-lacework authored Jan 23, 2024
1 parent 687b443 commit 525154d
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 @@ -11,7 +11,7 @@ locals {
application_password = var.use_existing_ad_application ? var.application_password : module.az_ad_application.application_password
service_principal_id = var.use_existing_ad_application ? var.service_principal_id : module.az_ad_application.service_principal_id
version_file = "${abspath(path.module)}/VERSION"
module_name = basename(abspath(path.module))
module_name = "terraform-azure-config"
module_version = fileexists(local.version_file) ? file(local.version_file) : ""
}

Expand Down Expand Up @@ -91,4 +91,4 @@ resource "lacework_integration_azure_cfg" "lacework" {
data "lacework_metric_module" "lwmetrics" {
name = local.module_name
version = local.module_version
}
}

0 comments on commit 525154d

Please sign in to comment.