Skip to content

Commit

Permalink
Merge pull request #316 from aztfmod/AL-306-fix
Browse files Browse the repository at this point in the history
Name composition update for #306
  • Loading branch information
arnaudlh authored Mar 5, 2021
2 parents 5e22873 + b5aa8ee commit 1ddbf4e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion documentation/conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ resource "azurecaf_name" "caf_name_vnet" {
name = var.settings.vnet.name
resource_type = "azurerm_virtual_network"
prefixes = [var.global_settings.prefix]
prefixes = var.global_settings.prefix
random_length = var.global_settings.random_length
clean_input = true
passthrough = var.global_settings.passthrough
Expand Down
2 changes: 1 addition & 1 deletion modules/compute/container_group/container_group.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "azurecaf_name" "acg" {
name = var.settings.name
resource_type = "azurerm_containerGroups"
prefixes = [var.global_settings.prefix]
prefixes = var.global_settings.prefix
random_length = var.global_settings.random_length
clean_input = true
passthrough = var.global_settings.passthrough
Expand Down
2 changes: 1 addition & 1 deletion modules/networking/front_door/front_door.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "azurecaf_name" "frontdoor" {
name = var.settings.name
resource_type = "azurerm_frontdoor"
prefixes = [try(var.settings.global_settings.prefix, var.global_settings.prefix)]
prefixes = try(var.settings.global_settings.prefix, var.global_settings.prefix)
random_length = try(var.settings.global_settings.random_lenght, var.global_settings.random_length)
clean_input = true
passthrough = try(var.settings.global_settings.passthrough, var.global_settings.passthrough)
Expand Down
2 changes: 1 addition & 1 deletion modules/networking/load_balancers/load_balancers.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "azurecaf_name" "lb_name" {
name = var.settings.name
resource_type = "azurerm_lb"
prefixes = [var.global_settings.prefix]
prefixes = var.global_settings.prefix
random_length = var.global_settings.random_length
clean_input = true
passthrough = var.global_settings.passthrough
Expand Down

0 comments on commit 1ddbf4e

Please sign in to comment.