Skip to content

Commit

Permalink
Merge pull request #232 from blackpiglet/set_update_time_for_bia
Browse files Browse the repository at this point in the history
Set operation progress update time for VS BIA on completion.
  • Loading branch information
sseago authored Mar 29, 2024
2 parents 36e5755 + 4511589 commit 2b15f04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/backup/volumesnapshot_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,14 @@ func (p *VolumeSnapshotBackupItemAction) Progress(operationID string, backup *ve
return progress, nil
}

now := time.Now()

if boolptr.IsSetToTrue(vsc.Status.ReadyToUse) {
progress.Completed = true
progress.Updated = now
} else if vsc.Status.Error != nil {
progress.Completed = true
progress.Updated = now
if vsc.Status.Error.Message != nil {
progress.Err = *vsc.Status.Error.Message
}
Expand Down

0 comments on commit 2b15f04

Please sign in to comment.