Skip to content

Commit

Permalink
chore: set local var module name (#15)
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 af5d543 commit b238766
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 @@ -2,7 +2,7 @@ locals {
user_name = length(var.user_name) > 0 ? var.user_name : "${var.name_prefix}_user"
group_name = length(var.group_name) > 0 ? var.group_name : "${var.name_prefix}_group"
version_file = "${abspath(path.module)}/VERSION"
module_name = basename(abspath(path.module))
module_name = "terraform-oci-iam-user"
module_version = fileexists(local.version_file) ? file(local.version_file) : ""
}
Expand Down Expand Up @@ -55,4 +55,4 @@ resource "oci_identity_api_key" "lacework_api_key" {
data "lacework_metric_module" "lwmetrics" {
name = local.module_name
version = local.module_version
}
}

0 comments on commit b238766

Please sign in to comment.