Skip to content

Commit b23c3c3

Browse files
Fabrizio CafollaFabrizio Cafolla
authored andcommitted
fix: lint
1 parent 13b42ae commit b23c3c3

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

examples/main.tf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ locals {
2222
{
2323
bucket_name = "external-website"
2424
# Here we override the global tags.
25-
tags = [
25+
tags = [
2626
"dev-team/editor", "external-team/editor"
2727
]
2828
},
@@ -43,13 +43,13 @@ locals {
4343

4444
# ------------------------------
4545
module "project_resources_tags" {
46-
source = "../."
47-
default_location = "europe-west1"
48-
project_id = "my-project-id"
49-
tags_to_be_discovered = local.tags_to_discover
50-
buckets_to_be_tagged = local.buckets_to_tag
46+
source = "../."
47+
default_location = "europe-west1"
48+
project_id = "my-project-id"
49+
tags_to_be_discovered = local.tags_to_discover
50+
buckets_to_be_tagged = local.buckets_to_tag
5151
artifact_registry_repositories_to_be_tagged = local.artifact_registry_repositories_to_be_tagged
52-
global_tags = [
52+
global_tags = [
5353
"dev-team/editor", "external-team/viewer"
5454
]
5555
}

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ locals {
101101
for repository in var.artifact_registry_repositories_to_be_tagged : {
102102
repository_id = repository.repository_id
103103
repository_location = repository.repository_location != null ? repository.repository_location : var.default_location
104-
tags = length(repository.tags) > 0 ? repository.tags : var.global_tags
104+
tags = length(repository.tags) > 0 ? repository.tags : var.global_tags
105105
}
106106
]
107107

@@ -111,7 +111,7 @@ locals {
111111
for tag in item.tags : {
112112
repository_id = item.repository_id
113113
repository_location = item.repository_location
114-
tag_friendly_name = tag
114+
tag_friendly_name = tag
115115
}
116116
]
117117
]) : "${obj.repository_id}--${obj.tag_friendly_name}" => obj

0 commit comments

Comments
 (0)