summaryrefslogtreecommitdiff
path: root/cmd/podman/system/connection/add.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-08-19 22:43:02 +0200
committerGitHub <noreply@github.com>2020-08-19 22:43:02 +0200
commit42690ff89c09b0135428b9e4a3f605aa57dc1189 (patch)
tree259492a306d0740714fe532e5005458a5ccb9ba6 /cmd/podman/system/connection/add.go
parentdcdb6474d6a65adce084da546fda7a93b5267c9b (diff)
parenteb9e8fc558baf314b6f244af748e5a3e87356a57 (diff)
downloadpodman-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/connection/add.go')
-rw-r--r--cmd/podman/system/connection/add.go2
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())
}