mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
Fixing merge issues and secret logging
This commit is contained in:
parent
78b0589a07
commit
7167e042b6
1 changed files with 0 additions and 9 deletions
|
@ -18,7 +18,6 @@ import (
|
|||
"context"
|
||||
"crypto/tls"
|
||||
"crypto/x509"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
|
@ -200,7 +199,6 @@ func (v *client) readSecret(ctx context.Context, path, version string) (map[stri
|
|||
secretData, ok = dataInt.(map[string]interface{})
|
||||
if !ok {
|
||||
return nil, errors.New(errJSONUnmarshall)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -211,13 +209,6 @@ func (v *client) readSecret(ctx context.Context, path, version string) (map[stri
|
|||
byteMap[k] = []byte(t)
|
||||
case []byte:
|
||||
byteMap[k] = t
|
||||
case map[string]interface{}:
|
||||
jsonString, err := json.Marshal(t)
|
||||
byteMap[k] = jsonString
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
default:
|
||||
return nil, errors.New(errSecretFormat)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue