Skip to content

Commit 7e11263

Browse files
authored
run make fmt & make fmt-docs (#1904)
1 parent 6a00182 commit 7e11263

File tree

11 files changed

+19
-21
lines changed

11 files changed

+19
-21
lines changed

clusters/acceptance/clusters_api_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestAccListClustersIntegration(t *testing.T) {
2525
ClusterName: "Terraform Integration Test " + randomName,
2626
SparkVersion: clustersAPI.LatestSparkVersionOrDefault(
2727
clusters.SparkVersionRequest{
28-
Latest: true,
28+
Latest: true,
2929
}),
3030
InstancePoolID: qa.GetEnvOrSkipTest(t, "TEST_INSTANCE_POOL_ID"),
3131
IdempotencyToken: "acc-list-" + randomName,
@@ -76,7 +76,7 @@ func TestAccListClustersResizeIntegrationTest(t *testing.T) {
7676
ClusterName: "Terraform Integration Test " + randomName,
7777
SparkVersion: clustersAPI.LatestSparkVersionOrDefault(
7878
clusters.SparkVersionRequest{
79-
Latest: true,
79+
Latest: true,
8080
}),
8181
InstancePoolID: qa.GetEnvOrSkipTest(t, "TEST_INSTANCE_POOL_ID"),
8282
IdempotencyToken: "acc-list-" + randomName,

common/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ type DatabricksClient struct {
4242
Username string `name:"username" env:"DATABRICKS_USERNAME" auth:"password"`
4343
Password string `name:"password" env:"DATABRICKS_PASSWORD" auth:"password,sensitive"`
4444

45-
ClientID string `name:"client_id" env:"DATABRICKS_CLIENT_ID" auth:"oauth"`
46-
ClientSecret string `name:"client_secret" env:"DATABRICKS_CLIENT_SECRET" auth:"oauth,sensitive"`
45+
ClientID string `name:"client_id" env:"DATABRICKS_CLIENT_ID" auth:"oauth"`
46+
ClientSecret string `name:"client_secret" env:"DATABRICKS_CLIENT_SECRET" auth:"oauth,sensitive"`
4747
TokenEndpoint string `name:"token_endpoint" env:"DATABRICKS_TOKEN_ENDPOINT" auth:"oauth"`
4848

4949
// Databricks Account ID for Accounts API. This field is used in dependencies.

docs/data-sources/directory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This data source allows to get information about a directory in a Databricks Wor
1111

1212
```hcl
1313
data "databricks_notebook" "prod" {
14-
path = "/Production"
14+
path = "/Production"
1515
}
1616
```
1717

docs/guides/unity-catalog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ data "aws_iam_policy_document" "passrole_for_uc" {
183183
variable = "aws:PrincipalArn"
184184
values = ["arn:aws:iam::${var.aws_account_id}:role/${local.prefix}-uc-access"]
185185
}
186-
}
186+
}
187187
}
188188
189189
resource "aws_iam_policy" "unity_metastore" {

docs/resources/cluster.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ resource "databricks_cluster" "cluster_with_table_access_control" {
146146
autotermination_minutes = 20
147147
148148
spark_conf = {
149-
"spark.databricks.repl.allowedLanguages": "python,sql",
150-
"spark.databricks.cluster.profile": "serverless"
149+
"spark.databricks.repl.allowedLanguages" : "python,sql",
150+
"spark.databricks.cluster.profile" : "serverless"
151151
}
152152
153153
custom_tags = {

docs/resources/job.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ The `timeouts` block allows you to specify `create` and `update` timeouts if you
259259
```hcl
260260
timeouts {
261261
create = "20m"
262-
update = "20m
262+
update = "20m"
263263
}
264264
```
265265

docs/resources/mws_workspaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ The `timeouts` block allows you to specify `create`, `read` and `update` timeout
247247
timeouts {
248248
create = "30m"
249249
read = "10m"
250-
update = "20m
250+
update = "20m"
251251
}
252252
```
253253

docs/resources/provider.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ Note that Databricks to Databricks sharing automatically creates the provider.
1313

1414
```hcl
1515
resource "databricks_provider" "dbprovider" {
16-
name = "terraform-test-provider"
17-
comment = "made by terraform 2"
16+
name = "terraform-test-provider"
17+
comment = "made by terraform 2"
1818
authentication_type = "TOKEN"
1919
recipient_profile_str = jsonencode(
2020
{
21-
"shareCredentialsVersion":1,
22-
"bearerToken":"token",
23-
"endpoint":"endpoint",
24-
"expirationTime":"expiration-time"
21+
"shareCredentialsVersion" : 1,
22+
"bearerToken" : "token",
23+
"endpoint" : "endpoint",
24+
"expirationTime" : "expiration-time"
2525
}
2626
)
2727
}
@@ -42,4 +42,4 @@ The following resources are used in the same context:
4242

4343
* [databricks_table](../data-sources/tables.md) data to list tables within Unity Catalog.
4444
* [databricks_schema](../data-sources/schemas.md) data to list schemas within Unity Catalog.
45-
* [databricks_catalog](../data-sources/catalogs.md) data to list catalogs within Unity Catalog.
45+
* [databricks_catalog](../data-sources/catalogs.md) data to list catalogs within Unity Catalog.

internal/compute/common_instances.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func NewTinyClusterInCommonPool() (c clusters.ClusterInfo, err error) {
9595
NumWorkers: 1,
9696
ClusterName: "Terraform " + randomName,
9797
SparkVersion: clustersAPI.LatestSparkVersionOrDefault(clusters.SparkVersionRequest{
98-
Latest: true,
98+
Latest: true,
9999
}),
100100
InstancePoolID: CommonInstancePoolID(),
101101
IdempotencyToken: "tf-" + randomName,
@@ -114,7 +114,7 @@ func NewTinyClusterInCommonPoolPossiblyReused() (c clusters.ClusterInfo) {
114114
NumWorkers: 1,
115115
ClusterName: currentCluster,
116116
SparkVersion: clustersAPI.LatestSparkVersionOrDefault(clusters.SparkVersionRequest{
117-
Latest: true,
117+
Latest: true,
118118
}),
119119
InstancePoolID: CommonInstancePoolID(),
120120
IdempotencyToken: "tf-" + randomName,

provider/gen/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// +build ignore
33

44
// Usage: go run provider/gen/main.go -name mws_workspaces -package mws -is-data -dry-run=false
5-
//
65
package main
76

87
import (

0 commit comments

Comments
 (0)