Skip to content

Commit

Permalink
fix: agent setting block is now fully optional (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddy-vera authored Nov 21, 2024
1 parent d354bbf commit e3aee76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tasks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resource "azurerm_container_registry_task" "tasks" {
tags = try(each.value.tags, var.tags, null)

dynamic "agent_setting" {
for_each = each.value.agent_setting != null ? [each.value.agent_setting] : []
for_each = try(each.value.agent_setting, null) != null ? [each.value.agent_setting] : []
content {
cpu = try(agent_setting.value.cpu, 2)
}
Expand Down

0 comments on commit e3aee76

Please sign in to comment.