Skip to content

Commit

Permalink
Merge pull request #65 from PerfectThymeTech/marvinbuss/update_storag…
Browse files Browse the repository at this point in the history
…e_variable_check

Update variable validation for `storage_network_private_link_access`
  • Loading branch information
marvinbuss authored Oct 1, 2024
2 parents 9508c8f + 2fc18bf commit 4fbc186
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/terraform-storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
environment: "dev"
config: "storage"
terraform_version: "1.9.5"
terraform_version: "1.9.6"
node_version: 20
tenant_id: "37963dd4-f4e6-40f8-a7d6-24b97919e452"
subscription_id: "1fdab118-1638-419a-8b12-06c9543714a0"
Expand Down
4 changes: 2 additions & 2 deletions modules/storage/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ variable "storage_network_private_link_access" {
default = []
validation {
condition = alltrue([
length([for value in toset(var.storage_network_private_link_access) : value if length(split("/", value)) < 8]) <= 0
length([for value in toset(var.storage_network_private_link_access) : value if length(split("/", value)) < 7]) <= 0
])
error_message = "Please provide a valid resource id that has the following format: \"/subscriptions/.../resourceGroups/.../providers/.../.../...\"."
error_message = "Please provide a valid resource id that has the following format: \"/subscriptions/.../resourceGroups/.../providers/.../.../...\" or \"/subscriptions/.../providers/.../.../...\"."
}
}

Expand Down

0 comments on commit 4fbc186

Please sign in to comment.