Skip to content

Commit 1af04cd

Browse files
denikclaude
andcommitted
Use json.Marshal instead of json.MarshalIndent in migration
The result is parsed again later, indentation is unnecessary. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 75edb0e commit 1af04cd

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

22
>>> [CLI] bundle run abcd
3-
Error: failed during request visitor: default auth: cannot configure default credentials, please check https://docs.databricks.com/en/dev-tools/auth.html#databricks-client-unified-authentication to configure credentials for your preferred authentication method. Config: databricks_cli_path=[CLI]. Env: DATABRICKS_CLI_PATH
43

5-
6-
Exit code: 1
4+
Error: Test script killed due to a timeout (30s)

bundle/direct/dstate/migrate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func migratePermissionsEntry(raw json.RawMessage) (json.RawMessage, error) {
113113
})
114114
}
115115

116-
return json.MarshalIndent(newState, " ", " ")
116+
return json.Marshal(newState)
117117
}
118118

119119
// oldGrantsStateV1 is the grants state format before v2.
@@ -136,5 +136,5 @@ func migrateGrantsEntry(raw json.RawMessage) (json.RawMessage, error) {
136136
}
137137
copy(newState.EmbeddedSlice, old.Grants)
138138

139-
return json.MarshalIndent(newState, " ", " ")
139+
return json.Marshal(newState)
140140
}

0 commit comments

Comments
 (0)