fix: add versions.tf and fix tofu fmt for pre-commit
Add required_providers block so tofu validate works in the module directory. Fix alignment from tofu fmt.
This commit is contained in:
@@ -15,10 +15,10 @@ locals {
|
||||
}
|
||||
|
||||
resource "sonarr_quality_profile" "this" {
|
||||
for_each = var.quality_profiles
|
||||
name = each.key
|
||||
upgrade_allowed = lookup(each.value, "upgrade_allowed", false)
|
||||
cutoff = each.value.cutoff
|
||||
for_each = var.quality_profiles
|
||||
name = each.key
|
||||
upgrade_allowed = lookup(each.value, "upgrade_allowed", false)
|
||||
cutoff = each.value.cutoff
|
||||
cutoff_format_score = lookup(each.value, "cutoff_format_score", 0)
|
||||
min_format_score = lookup(each.value, "min_format_score", 0)
|
||||
min_upgrade_format_score = lookup(each.value, "min_upgrade_format_score", 0)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
terraform {
|
||||
required_version = ">= 1.10"
|
||||
required_providers {
|
||||
sonarr = {
|
||||
source = "devopsarr/sonarr"
|
||||
version = ">= 3.4.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user