mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 20:00:23 +00:00
cleanup: return error type in ReconcilePersistentVolume.getCredentials()
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
a7a928d7ec
commit
37471c7a5f
@ -92,7 +92,7 @@ func (r *ReconcilePersistentVolume) getCredentials(name, namespace string) (*uti
|
||||
secret := &corev1.Secret{}
|
||||
err := r.client.Get(context.TODO(), types.NamespacedName{Name: name, Namespace: namespace}, secret)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error getting secret %s in namespace %s: %v", name, namespace, err)
|
||||
return nil, fmt.Errorf("error getting secret %s in namespace %s: %w", name, namespace, err)
|
||||
}
|
||||
|
||||
credentials := map[string]string{}
|
||||
|
Loading…
Reference in New Issue
Block a user