diff options
author | baude <bbaude@redhat.com> | 2019-08-01 12:43:21 -0500 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-08-02 20:05:27 -0500 |
commit | 63eef5a23415380bdc3975c90fc88305a0380a61 (patch) | |
tree | ee58434bb3c92258d3ff899b9e234be31aebd6c4 /pkg/adapter | |
parent | 3cc9ab8992833ddf952df479ffb239c61845fa2e (diff) | |
download | podman-63eef5a23415380bdc3975c90fc88305a0380a61.tar.gz podman-63eef5a23415380bdc3975c90fc88305a0380a61.tar.bz2 podman-63eef5a23415380bdc3975c90fc88305a0380a61.zip |
add eventlogger to info
to help with future debugging, we now display the type of event logger
being used inside podman info -> host.
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/adapter')
-rw-r--r-- | pkg/adapter/client.go | 3 |
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) |