Skip to content

Commit

Permalink
fix(locals.tf): adjust container_registry_name substring to start fro…
Browse files Browse the repository at this point in the history
…m index 0 for consistency with other naming conventions
  • Loading branch information
sachincool committed Nov 20, 2024
1 parent 3edf75b commit f1c3238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ locals {
cluster_name = replace(replace(var.cluster_name, "-", ""), "_", "")
storage_account_name = var.blob_storage_account_enable_override ? var.blob_storage_account_override_name : "${substr(local.cluster_name, 0, 22)}sa"
container_name = var.blob_container_enable_override ? var.blob_container_override_name : "${substr(var.cluster_name, 0, 62)}cn"
container_registry_name = var.container_registry_enable_override ? var.container_registry_override_name : "${substr(local.cluster_name, 5, 47)}reg"
container_registry_name = var.container_registry_enable_override ? var.container_registry_override_name : "${substr(local.cluster_name, 0, 47)}reg"
azuread_application = var.cluster_integration_azuread_application_enable_override ? var.cluster_integration_azuread_application_override_name : "${substr(var.cluster_name, 0, 117)}app"
service_principal_password = "${local.cluster_name}sp"
tags = merge(
Expand Down

0 comments on commit f1c3238

Please sign in to comment.