Skip to content

Commit d39f182

Browse files
committed
fix
1 parent 0426cff commit d39f182

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 truncated to 12 chars and a random id of 12 chars, adjusted to naming restrictions
77
locals {
88
truncated_name = substr(var.name, 0, 12)
9-
_names = [for name in var.resource_group_names : "${local.truncated_name}${random_id.storage_account_id[idx].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)