Skip to content

Commit

Permalink
fix: version.tf and improved format
Browse files Browse the repository at this point in the history
  • Loading branch information
vedant990 committed Sep 18, 2024
1 parent 1527282 commit 46f19db
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/with_existing_dns_zone_in_diff_subs/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "4..0"
version = ">=4.0.0"
}
}
}
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ resource "azurerm_container_registry" "main" {
# enabled = var.enable_content_trust
# }
# }
trust_policy_enabled = var.container_registry_config.sku == "Premium" ? var.enable_content_trust : false
trust_policy_enabled = var.container_registry_config.sku == "Premium" ? var.enable_content_trust : false
retention_policy_in_days = var.retention_policy != null && var.container_registry_config.sku == "Premium" ? var.retention_policy : null

identity {
Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ variable "network_rule_set" {


variable "retention_policy" {
type = number
default = 5
type = number
default = 5
description = "Set a retention policy for untagged manifests"
}

Expand Down
4 changes: 2 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ terraform {
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "4.0.0"
source = "hashicorp/azurerm"
version = ">=4.0.0"
configuration_aliases = [azurerm.main_sub, azurerm.dns_sub]
}
}
Expand Down

0 comments on commit 46f19db

Please sign in to comment.