util: correct error message when connecting to Vault fails

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2021-07-30 09:52:44 +02:00 committed by mergify[bot]
parent 5cba04c470
commit 83167e2ac5

View File

@ -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