Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jensheerin committed May 31, 2024
1 parent 7be0981 commit b11ccac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ resource "azurerm_role_assignment" "this" {
}

resource "azurerm_management_lock" "this" {
count = var.lock.kind != "None" ? 1 : 0
count = (var.lock != null) ? 1 : 0

lock_level = var.lock.kind
name = coalesce(var.lock.name, "lock-${var.virtual_desktop_application_group_name}")
scope = azurerm_virtual_desktop_application_group.this.id
notes = var.lock.kind == "CanNotDelete" ? "Cannot delete the resource or its child resources." : "Cannot delete or modify the resource or its child resources."
}

# Create Diagnostic Settings for AVD application group
Expand Down

0 comments on commit b11ccac

Please sign in to comment.