fix: use json.MarshalIndent to format event_config.json

This adds indent fomratting to the generated event_config.json
for easier reading/editing.
This commit is contained in:
Ben McClelland
2024-05-31 10:22:25 -07:00
parent 4ca8e5b75a
commit b7cc7feffa
+1 -1
View File
@@ -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)
}