mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-30 10:10:21 +00:00
util: correct error message when connecting to Vault fails
Signed-off-by: Niels de Vos <ndevos@redhat.com>
(cherry picked from commit 83167e2ac5
)
This commit is contained in:
parent
cb40ae5bca
commit
a962cccd0a
@ -249,7 +249,7 @@ func (vc *vaultConnection) initCertificates(config map[string]interface{}, secre
|
|||||||
func (vc *vaultConnection) connectVault() error {
|
func (vc *vaultConnection) connectVault() error {
|
||||||
v, err := vault.New(vc.vaultConfig)
|
v, err := vault.New(vc.vaultConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed creating new Vault Secrets: %w", err)
|
return fmt.Errorf("failed connecting to Vault: %w", err)
|
||||||
}
|
}
|
||||||
vc.secrets = v
|
vc.secrets = v
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user