Skip to content

Commit

Permalink
pr changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonQ committed Jun 29, 2022
1 parent 39f7034 commit 5d87ddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/agent/cmd/diagnostics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d87ddb

Please sign in to comment.