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:
parent
959692ab80
commit
e3dc619904
2 changed files with 6 additions and 8 deletions
|
@ -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 {
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue