Skip to content

Commit

Permalink
backup redact: print objectID redaction mapping
Browse files Browse the repository at this point in the history
so that customers can identify the mapping that
reproduces a specific issue
  • Loading branch information
vroldanbet committed Jul 17, 2024
1 parent 530cfcf commit 8c328e3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/cmd/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,15 @@ func backupRedactCmdFunc(cmd *cobra.Command, args []string) error {
tbl.Print()
fmt.Println()

if len(redactor.RedactionMap().ObjectIDs) > 0 {
tbl = table.New("Object ID", "Redacted Object ID")
for k, v := range redactor.RedactionMap().ObjectIDs {
tbl.AddRow(k, v)
}
tbl.Print()
fmt.Println()
}

return nil
}

Expand Down

0 comments on commit 8c328e3

Please sign in to comment.