mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-07 13:55:20 +00:00
@@ -546,7 +546,8 @@ func (r *backupDeletionReconciler) deleteMovedSnapshots(ctx context.Context, bac
|
||||
snapshot := repository.SnapshotIdentifier{}
|
||||
b, err := json.Marshal(cm.Data)
|
||||
if err != nil {
|
||||
r.logger.WithError(err).Infof("Fail to encode JSON: %v", cm.Data)
|
||||
errs = append(errs, errors.Wrapf(err, "fail to marshal the snapshot info into JSON"))
|
||||
continue
|
||||
}
|
||||
if err := json.Unmarshal(b, &snapshot); err != nil {
|
||||
errs = append(errs, errors.Wrapf(err, "failed to unmarshal snapshot info"))
|
||||
|
||||
Reference in New Issue
Block a user