From 5380bd39135470ba4ddb53d04894f5a47ca3c6e8 Mon Sep 17 00:00:00 2001 From: Jack Yu Date: Thu, 25 Jan 2024 15:31:01 +0800 Subject: [PATCH] format Signed-off-by: Jack Yu --- pkg/manager/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/manager/manager.go b/pkg/manager/manager.go index a95150afc..b71b507af 100644 --- a/pkg/manager/manager.go +++ b/pkg/manager/manager.go @@ -240,7 +240,7 @@ func (m *SupportBundleManager) phaseCollectPrometheusBundle() error { return errors.Wrap(err, "failed to get prometheus alert") } - b, err := json.Marshal(alerts) + b, err := json.MarshalIndent(alerts, "", "\t") if err != nil { return errors.Wrap(err, "failed to marshal prometheus alert") }