diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-08-19 22:43:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-19 22:43:02 +0200 |
commit | 42690ff89c09b0135428b9e4a3f605aa57dc1189 (patch) | |
tree | 259492a306d0740714fe532e5005458a5ccb9ba6 /cmd/podman/system | |
parent | dcdb6474d6a65adce084da546fda7a93b5267c9b (diff) | |
parent | eb9e8fc558baf314b6f244af748e5a3e87356a57 (diff) | |
download | podman-42690ff89c09b0135428b9e4a3f605aa57dc1189.tar.gz podman-42690ff89c09b0135428b9e4a3f605aa57dc1189.tar.bz2 podman-42690ff89c09b0135428b9e4a3f605aa57dc1189.zip |
Merge pull request #7366 from jwhonce/jira/run-991
Implement --connection flag
Diffstat (limited to 'cmd/podman/system')
-rw-r--r-- | cmd/podman/system/connection/add.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/system/connection/add.go b/cmd/podman/system/connection/add.go index af13b970c..8b9ab6dbb 100644 --- a/cmd/podman/system/connection/add.go +++ b/cmd/podman/system/connection/add.go @@ -95,7 +95,7 @@ func add(cmd *cobra.Command, args []string) error { uri.Host = net.JoinHostPort(uri.Hostname(), cmd.Flag("port").DefValue) } - if uri.Path == "" { + if uri.Path == "" || uri.Path == "/" { if uri.Path, err = getUDS(cmd, uri); err != nil { return errors.Wrapf(err, "failed to connect to %q", uri.String()) } |