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 <gang.yang@daocloud.io>
  • Loading branch information
yanggang authored and sseago committed Oct 16, 2023
1 parent ef1b981 commit ce24e10
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 @@ -597,6 +597,10 @@ func (b *backupReconciler) validateAndGetSnapshotLocations(backup *velerov1api.B
}
}

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

return providerLocations, nil
}

Expand Down

0 comments on commit ce24e10

Please sign in to comment.