1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00

After make fmt

This commit is contained in:
Hafid Haddouti 2022-03-21 19:43:01 +01:00
parent eb88e696ea
commit 0a5a9d32af

View file

@ -215,7 +215,6 @@ func getUsernamePasswordSecret(ibm *providerIBM, secretName *string, ref esv1bet
}
func getKVSecret(ibm *providerIBM, secretName *string, ref esv1beta1.ExternalSecretDataRemoteRef) ([]byte, error) {
secret, err := getSecretByType(ibm, secretName, sm.CreateSecretOptionsSecretTypeKvConst)
if err != nil {
return nil, err
@ -232,7 +231,6 @@ func getKVSecret(ibm *providerIBM, secretName *string, ref esv1beta1.ExternalSec
// returns only the value of the requested key, otherwise the entire payload
if ref.Property != "" {
if val, ok := kv[ref.Property]; ok {
return []byte(val.(string)), nil
}
@ -243,7 +241,6 @@ func getKVSecret(ibm *providerIBM, secretName *string, ref esv1beta1.ExternalSec
}
func getSecretByType(ibm *providerIBM, secretName *string, secretType string) (*sm.SecretResource, error) {
response, _, err := ibm.IBMClient.GetSecret(
&sm.GetSecretOptions{
SecretType: core.StringPtr(secretType),