diff --git a/internal/pkg/agent/cmd/diagnostics.go b/internal/pkg/agent/cmd/diagnostics.go index 3da483599fb..0fbba44be71 100644 --- a/internal/pkg/agent/cmd/diagnostics.go +++ b/internal/pkg/agent/cmd/diagnostics.go @@ -719,12 +719,12 @@ func redact(v interface{}) (map[string]interface{}, error) { redacted := map[string]interface{}{} bs, err := yaml.Marshal(v) if err != nil { - return nil, fmt.Errorf("could not maeshal data to redact: %w", err) + return nil, fmt.Errorf("could not marshal data to redact: %w", err) } err = yaml.Unmarshal(bs, &redacted) if err != nil { - return nil, fmt.Errorf("could not unmaeshal data to redact: %w", err) + return nil, fmt.Errorf("could not unmarshal data to redact: %w", err) } return redactMap(redacted), nil