Skip to content

Commit

Permalink
add count to license lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
anniehedgpeth committed Oct 4, 2023
1 parent 6d295b8 commit 4539228
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/private-active-active/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ data "azurerm_key_vault_secret" "vm_key" {
}

data "azurerm_key_vault_secret" "tfe_license" {
count = var.tfe_license_secret_name == null ? 0 : 1

name = var.tfe_license_secret_name
key_vault_id = var.key_vault_id
}
Expand Down
2 changes: 2 additions & 0 deletions tests/private-tcp-active-active/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ data "azurerm_key_vault_secret" "ca_key" {
}

data "azurerm_key_vault_secret" "tfe_license" {
count = var.tfe_license_secret_name == null ? 0 : 1

name = var.tfe_license_secret_name
key_vault_id = var.key_vault_id
}
Expand Down
2 changes: 2 additions & 0 deletions tests/public-active-active/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ data "azurerm_key_vault_secret" "vm_key" {
}

data "azurerm_key_vault_secret" "tfe_license" {
count = var.tfe_license_secret_name == null ? 0 : 1

name = var.tfe_license_secret_name
key_vault_id = var.key_vault_id
}

0 comments on commit 4539228

Please sign in to comment.