Skip to content

Commit 1d9e8a6

Browse files
committed
Format Terraform files in examples/
Ran `terraform fmt -recursive examples/` to get format-valid Terraform files. We should add a CI check for not introducing format-invalid files in the future. Signed-off-by: Leandro López (inkel) <[email protected]>
1 parent 0a08c26 commit 1d9e8a6

File tree

14 files changed

+66
-66
lines changed

14 files changed

+66
-66
lines changed

examples/data-sources/grafana_cloud_stack/data-source.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resource "grafana_cloud_stack" "test" {
2-
name = "gcloudstacktest"
3-
slug = "gcloudstacktest"
2+
name = "gcloudstacktest"
3+
slug = "gcloudstacktest"
44
region_slug = "eu"
55
description = "Test Grafana Cloud Stack"
66
}
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
resource "grafana_dashboard" "test_bad_inputs" {
2-
config_json = jsonencode({
3-
id = 12345,
4-
title = "Production Overview",
5-
tags = [ "templated" ],
6-
timezone = "browser",
7-
schemaVersion = 16,
8-
version = 0,
9-
refresh = "25s"
2+
config_json = jsonencode({
3+
id = 12345,
4+
title = "Production Overview",
5+
tags = ["templated"],
6+
timezone = "browser",
7+
schemaVersion = 16,
8+
version = 0,
9+
refresh = "25s"
1010
})
1111
}
1212

1313
data "grafana_dashboard" "bad_from_uid_id" {
14-
uid = grafana_dashboard.test_bad_inputs.id
15-
dashboard_id = grafana_dashboard.test_bad_inputs.dashboard_id
14+
uid = grafana_dashboard.test_bad_inputs.id
15+
dashboard_id = grafana_dashboard.test_bad_inputs.dashboard_id
1616
}

examples/data-sources/grafana_dashboard/data-source.tf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
resource "grafana_dashboard" "test" {
2-
config_json = jsonencode({
3-
id = 12345,
4-
title = "Production Overview",
5-
tags = [ "templated" ],
6-
timezone = "browser",
7-
schemaVersion = 16,
8-
version = 0,
9-
refresh = "25s"
2+
config_json = jsonencode({
3+
id = 12345,
4+
title = "Production Overview",
5+
tags = ["templated"],
6+
timezone = "browser",
7+
schemaVersion = 16,
8+
version = 0,
9+
refresh = "25s"
1010
})
1111
}
1212

examples/resources/grafana_api_key/resource.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ resource "grafana_api_key" "foo" {
44
}
55

66
resource "grafana_api_key" "bar" {
7-
name = "key_bar"
8-
role = "Admin"
7+
name = "key_bar"
8+
role = "Admin"
99
seconds_to_live = 30
1010
}
1111

1212

1313
output "api_key_foo_key_only" {
14-
value = grafana_api_key.foo.key
14+
value = grafana_api_key.foo.key
1515
sensitive = true
1616
}
1717

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
resource "grafana_builtin_role_assignment" "viewer" {
22
builtin_role = "Viewer"
33
roles {
4-
uid = "firstuid"
4+
uid = "firstuid"
55
global = false
66
}
77
roles {
8-
uid = "seconduid"
8+
uid = "seconduid"
99
global = true
1010
}
1111
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resource "grafana_cloud_stack" "test" {
2-
name = "gcloudstacktest"
3-
slug = "gcloudstacktest"
2+
name = "gcloudstacktest"
3+
slug = "gcloudstacktest"
44
region_slug = "eu"
55
description = "Test Grafana Cloud Stack"
66
}

examples/resources/grafana_library_panel/_acc_basic.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# computed fields.
44
#
55
resource "grafana_library_panel" "test" {
6-
name = "basic"
7-
folder_id = 0
8-
model_json = jsonencode({
9-
title = "basic",
10-
version = 34,
6+
name = "basic"
7+
folder_id = 0
8+
model_json = jsonencode({
9+
title = "basic",
10+
version = 34,
1111
})
1212
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This is used to test that we can update _acc_basic.tf
22
resource "grafana_library_panel" "test" {
3-
name = "updated name"
4-
model_json = jsonencode({
5-
title = "updated name",
6-
id = 12,
7-
version = 35
3+
name = "updated name"
4+
model_json = jsonencode({
5+
title = "updated name",
6+
id = 12,
7+
version = 35
88
})
99
}

examples/resources/grafana_library_panel/_acc_basic_update_uid.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#
33
# it a point to ensure explicit changes to `uid` are noticed.
44
resource "grafana_library_panel" "test" {
5-
name = "basic_update_uid"
6-
folder_id = 0
7-
model_json = jsonencode({
5+
name = "basic_update_uid"
6+
folder_id = 0
7+
model_json = jsonencode({
88
description = "basic_update_uid",
99
})
1010
}

examples/resources/grafana_library_panel/_acc_computed.tf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
# We'd like to ensure that using a computed configuration works.
33

44
resource "grafana_library_panel" "test" {
5-
name = "computed"
6-
folder_id = 0
7-
model_json = jsonencode({
8-
title = "computed"
9-
id = 12,
10-
version = 35
5+
name = "computed"
6+
folder_id = 0
7+
model_json = jsonencode({
8+
title = "computed"
9+
id = 12,
10+
version = 35
1111
})
1212
}
1313

1414
resource "grafana_library_panel" "test-computed" {
15-
name = "computed-uid"
16-
folder_id = 0
17-
model_json = jsonencode({
15+
name = "computed-uid"
16+
folder_id = 0
17+
model_json = jsonencode({
1818
title = "computed-uid"
1919
description = "test computed UID",
2020
type = "test",

0 commit comments

Comments
 (0)