Skip to content

Commit

Permalink
Merge pull request #1 from beclab/fix/backup-size
Browse files Browse the repository at this point in the history
fixed: failed to retrieve backup size
  • Loading branch information
aby913 authored May 16, 2024
2 parents 074cc3f + 75d2845 commit 581c737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/modules/backup/v1/backup_schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func (o *BackupPlan) Get(ctx context.Context, name string) (*ResponseDescribeBac
if phase == nil || middlewarePhase == nil {
continue
}
if *phase == velero.Succeed && util.ListContains([]string{velero.Succeed, velero.Success}, *middlewarePhase) {
if *phase == velero.VeleroBackupCompleted && util.ListContains([]string{velero.Succeed, velero.Success}, *middlewarePhase) {
if i.Spec.Size != nil {
r.Size = i.Spec.Size
}
Expand Down

0 comments on commit 581c737

Please sign in to comment.