Update gateway_policy.tf
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 22s
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 22s
This commit is contained in:
@@ -60,7 +60,8 @@ locals {
|
||||
ads_domain_list_file = fileset("${path.module}/lists/pihole_domain_list.txt", "*.txt")
|
||||
|
||||
# Parse the file and create a list, one item per line
|
||||
ads_domain_list = split("\n", file(local.ads_domain_list_file))
|
||||
#ads_domain_list = split("\n", file(local.ads_domain_list_file))
|
||||
ads_domain_list = length(local.ads_domain_list_file) > 0 ? split("\n", file(local.ads_domain_list_file)) : []
|
||||
|
||||
# Remove empty lines
|
||||
ads_domain_list_clean = [for x in local.ads_domain_list : x if x != ""]
|
||||
|
||||
Reference in New Issue
Block a user