Skip to content

Commit 751c259

Browse files
committed
fix sa name
1 parent cc476e9 commit 751c259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloud_Azure/terraform/module/storage_account.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ resource "random_id" "storage_account_id" {
66
# Each output name is concatenation of the exporter name and a random id, adjusted to naming restrictions
77
locals {
88
truncated_name = substr(var.name, 0, 12)
9-
_names = [for name in var.resource_group_names : "${truncated_name}${random_id.storage_account_id.hex}"]
9+
_names = [for name in var.resource_group_names : "${local.truncated_name}${random_id.storage_account_id.hex}"]
1010
_lowercase_names = [for name in local._names : lower(name)]
1111
_alphanum_lowercase_names = [for name in local._lowercase_names : join("", regexall("[[:alnum:]]+", name))]
1212
generated_storage_account_names = [for name in local._alphanum_lowercase_names : substr(name, 0, 24)]

0 commit comments

Comments
 (0)