summaryrefslogtreecommitdiff
path: root/pkg/adapter
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-08-05 15:23:05 +0200
committerGitHub <noreply@github.com>2019-08-05 15:23:05 +0200
commit626dfdb6131a5f37c2f7cc93dbb98f33d495aca4 (patch)
tree1836f259849718606dd0a8af541038d840909dc9 /pkg/adapter
parente2f38cdaa41ddc711cce40e00dab9c8457d2e830 (diff)
parent63eef5a23415380bdc3975c90fc88305a0380a61 (diff)
downloadpodman-626dfdb6131a5f37c2f7cc93dbb98f33d495aca4.tar.gz
podman-626dfdb6131a5f37c2f7cc93dbb98f33d495aca4.tar.bz2
podman-626dfdb6131a5f37c2f7cc93dbb98f33d495aca4.zip
Merge pull request #3691 from baude/infoeventlogger
add eventlogger to info
Diffstat (limited to 'pkg/adapter')
-rw-r--r--pkg/adapter/client.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/adapter/client.go b/pkg/adapter/client.go
index 694d9f961..da6ff5fd0 100644
--- a/pkg/adapter/client.go
+++ b/pkg/adapter/client.go
@@ -16,7 +16,7 @@ var remoteEndpoint *Endpoint
func (r RemoteRuntime) RemoteEndpoint() (remoteEndpoint *Endpoint, err error) {
remoteConfigConnections, err := remoteclientconfig.ReadRemoteConfig(r.config)
- if errors.Cause(err) != remoteclientconfig.ErrNoConfigationFile {
+ if err != nil && errors.Cause(err) != remoteclientconfig.ErrNoConfigationFile {
return nil, err
}
// If the user defines an env variable for podman_varlink_bridge
@@ -68,7 +68,6 @@ func (r RemoteRuntime) Connect() (*varlink.Connection, error) {
if err != nil {
return nil, err
}
-
switch ep.Type {
case DirectConnection:
return varlink.NewConnection(ep.Connection)