Skip to content

Commit

Permalink
fix backup_controller when credentials to volume snapshot location sh…
Browse files Browse the repository at this point in the history
…ow error.

Signed-off-by: yanggang <[email protected]>
  • Loading branch information
yanggang committed Aug 15, 2023
1 parent 411bd54 commit 46ef54e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/controller/backup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,10 @@ func (b *backupReconciler) validateAndGetSnapshotLocations(backup *velerov1api.B
}
}

if len(errors) > 0 {
return nil, errors
}

return providerLocations, nil
}

Expand Down

0 comments on commit 46ef54e

Please sign in to comment.