1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

[Bugfix] Fix executor (#1327)

This commit is contained in:
Adam Janikowski 2023-06-07 21:57:14 +02:00 committed by GitHub
parent 959692ab80
commit e3dc619904
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 8 deletions

View file

@ -66,10 +66,6 @@ func (e executor[IN, OUT]) Execute(ctx context.Context, method string, endpoint
defer resp.Close()
if err := resp.Close(); err != nil {
return nil, 0, err
}
var out OUT
if err := json.NewDecoder(resp).Decode(&out); err != nil {

View file

@ -73,11 +73,13 @@ func (f factory) RawConnection(host string) (Connection, error) {
return nil, err
}
if auth.Type() != driver.AuthenticationTypeRaw {
return nil, errors.Newf("Only RAW Authentication is supported")
}
if auth != nil {
if auth.Type() != driver.AuthenticationTypeRaw {
return nil, errors.Newf("Only RAW Authentication is supported")
}
authString = util.NewType(auth.Get("value"))
authString = util.NewType(auth.Get("value"))
}
}
return connection{