From 75d28451cfe7bd1650e98115424cb374a16309f6 Mon Sep 17 00:00:00 2001 From: aby913 Date: Thu, 16 May 2024 13:43:30 +0800 Subject: [PATCH] fixed: failed to retrieve backup size --- pkg/modules/backup/v1/backup_schedule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/modules/backup/v1/backup_schedule.go b/pkg/modules/backup/v1/backup_schedule.go index c2709c5..a28bbbe 100644 --- a/pkg/modules/backup/v1/backup_schedule.go +++ b/pkg/modules/backup/v1/backup_schedule.go @@ -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 }