fix backup_controller when credentials to volume snapshot location show error.

Signed-off-by: yanggang <gang.yang@daocloud.io>
pull/6653/head
yanggang 2023-08-15 19:36:07 +08:00
parent 411bd54920
commit 46ef54e80a
No known key found for this signature in database
GPG Key ID: 7F6E0CAD1556A240
1 changed files with 4 additions and 0 deletions

View File

@ -590,6 +590,10 @@ func (b *backupReconciler) validateAndGetSnapshotLocations(backup *velerov1api.B
}
}
if len(errors) > 0 {
return nil, errors
}
return providerLocations, nil
}