Skip to content

Commit 4131a86

Browse files
committed
Switch to json.Marshal in the provisioner-generated config file function
1 parent ae0c337 commit 4131a86

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

plugins/todoist/api_token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func todoistConfig(in sdk.ProvisionInput) ([]byte, error) {
6868
config := Config{
6969
Token: in.ItemFields[fieldname.Token],
7070
}
71-
contents, err := json.MarshalIndent(&config, "", " ")
71+
contents, err := json.Marshal(&config)
7272
if err != nil {
7373
return nil, err
7474
}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
{
2-
"token": "dbq9y65uguqrk4ognfhdiwcc0zx34z20pexample"
3-
}
1+
{"token":"dbq9y65uguqrk4ognfhdiwcc0zx34z20pexample"}

0 commit comments

Comments
 (0)