Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
samsimpson1 committed Sep 4, 2024
1 parent 82a02e8 commit 6680a67
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions assets/import.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ import {

import {
for_each = local.dictionaries
to = fastly_service_dictionary_items.items[each.key]
id = "${local.fastly_service_id}/${one([for d in data.fastly_dictionaries.dicts.dictionaries : d if d.name == each.key]).id}"
to = fastly_service_dictionary_items.items[each.key]
id = "${local.fastly_service_id}/${one([for d in data.fastly_dictionaries.dicts.dictionaries : d if d.name == each.key]).id}"
}
4 changes: 2 additions & 2 deletions datagovuk/import.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ import {

import {
for_each = local.dictionaries
to = fastly_service_dictionary_items.items[each.key]
id = "${local.fastly_service_id}/${one([for d in data.fastly_dictionaries.dicts.dictionaries : d if d.name == each.key]).id}"
to = fastly_service_dictionary_items.items[each.key]
id = "${local.fastly_service_id}/${one([for d in data.fastly_dictionaries.dicts.dictionaries : d if d.name == each.key]).id}"
}
2 changes: 1 addition & 1 deletion datagovuk/service.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
secrets = yamldecode(var.secrets)
secrets = yamldecode(var.secrets)
dictionaries = yamldecode(var.dictionaries)

ip_allowlist = try(local.secrets["allowed_ip_addresses"], [])
Expand Down
2 changes: 1 addition & 1 deletion service-domain-redirect/variables.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
variable "environment" {
type = string
type = string
default = "productioh"
}
4 changes: 2 additions & 2 deletions www/import.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ import {

import {
for_each = local.dictionaries
to = fastly_service_dictionary_items.items[each.key]
id = "${local.fastly_service_id}/${one([for d in data.fastly_dictionaries.dicts.dictionaries : d if d.name == each.key]).id}"
to = fastly_service_dictionary_items.items[each.key]
id = "${local.fastly_service_id}/${one([for d in data.fastly_dictionaries.dicts.dictionaries : d if d.name == each.key]).id}"
}
4 changes: 2 additions & 2 deletions www/service.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
locals {
secrets = yamldecode(var.secrets)
secrets = yamldecode(var.secrets)
dictionaries = merge(
yamldecode(var.dictionaries),
yamldecode(file("../dictionaries.yaml"))
)
ab_tests = try(yamldecode(file("./ab_tests.yaml")), [])
ab_tests = try(yamldecode(file("./ab_tests.yaml")), [])
ip_allowlist = try(local.secrets["allowed_ip_addresses"], [])
allowed_cidrs = [
for v in local.ip_allowlist : strcontains(v, "/") ? v : "${v}/32"
Expand Down

0 comments on commit 6680a67

Please sign in to comment.