From b7cc7feffa226f1395a0e27d4af465a0a69c6880 Mon Sep 17 00:00:00 2001 From: Ben McClelland Date: Fri, 31 May 2024 10:22:23 -0700 Subject: [PATCH] fix: use json.MarshalIndent to format event_config.json This adds indent fomratting to the generated event_config.json for easier reading/editing. --- cmd/versitygw/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/versitygw/utils.go b/cmd/versitygw/utils.go index 25e0e3d5..1d07333d 100644 --- a/cmd/versitygw/utils.go +++ b/cmd/versitygw/utils.go @@ -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) }