Skip to content

Commit

Permalink
Switch to json.Marshal in the provisioner-generated config file function
Browse files Browse the repository at this point in the history
  • Loading branch information
arunsathiya committed Aug 14, 2023
1 parent ae0c337 commit 4131a86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/todoist/api_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func todoistConfig(in sdk.ProvisionInput) ([]byte, error) {
config := Config{
Token: in.ItemFields[fieldname.Token],
}
contents, err := json.MarshalIndent(&config, "", " ")
contents, err := json.Marshal(&config)
if err != nil {
return nil, err
}
Expand Down
4 changes: 1 addition & 3 deletions plugins/todoist/test-fixtures/config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{
"token": "dbq9y65uguqrk4ognfhdiwcc0zx34z20pexample"
}
{"token":"dbq9y65uguqrk4ognfhdiwcc0zx34z20pexample"}

0 comments on commit 4131a86

Please sign in to comment.