Skip to content

Commit

Permalink
fix: use json.MarshalIndent to format event_config.json
Browse files Browse the repository at this point in the history
This adds indent fomratting to the generated event_config.json
for easier reading/editing.
  • Loading branch information
benmcclelland committed May 31, 2024
1 parent 4ca8e5b commit b7cc7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/versitygw/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func generateEventFiltersConfig(ctx *cli.Context) error {
s3event.EventObjectRestoreCompleted: true,
}

configBytes, err := json.Marshal(config)
configBytes, err := json.MarshalIndent(config, "", " ")
if err != nil {
return fmt.Errorf("parse event config: %w", err)
}
Expand Down

0 comments on commit b7cc7fe

Please sign in to comment.