summaryrefslogtreecommitdiff
path: root/vendor/github.com/fsouza/go-dockerclient/network.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-13 10:14:09 -0700
committerGitHub <noreply@github.com>2019-03-13 10:14:09 -0700
commit1fa664166571ab7dd3abe1b0d64ae9a81a8688ae (patch)
treefc6b218409181bbe49c7c315bcba16ab160d49f4 /vendor/github.com/fsouza/go-dockerclient/network.go
parent8b3f759800ebd6e53e0a807728ede633aa9bdb36 (diff)
parent8f418f1568b2735fdeea9a84afc354e1f8cbc94c (diff)
downloadpodman-1fa664166571ab7dd3abe1b0d64ae9a81a8688ae.tar.gz
podman-1fa664166571ab7dd3abe1b0d64ae9a81a8688ae.tar.bz2
podman-1fa664166571ab7dd3abe1b0d64ae9a81a8688ae.zip
Merge pull request #2628 from TomSweeneyRedHat/dev/tsweeney/bigvendorbuildah2
Vendor docker/docker, fsouza and more #2
Diffstat (limited to 'vendor/github.com/fsouza/go-dockerclient/network.go')
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/network.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/github.com/fsouza/go-dockerclient/network.go b/vendor/github.com/fsouza/go-dockerclient/network.go
index c6ddb22c6..8c03b9ae6 100644
--- a/vendor/github.com/fsouza/go-dockerclient/network.go
+++ b/vendor/github.com/fsouza/go-dockerclient/network.go
@@ -10,6 +10,7 @@ import (
"errors"
"fmt"
"net/http"
+ "net/url"
)
// ErrNetworkAlreadyExists is the error returned by CreateNetwork when the
@@ -71,7 +72,9 @@ func (c *Client) FilteredListNetworks(opts NetworkFilterOpts) ([]Network, error)
if err != nil {
return nil, err
}
- path := "/networks?filters=" + string(params)
+ qs := make(url.Values)
+ qs.Add("filters", string(params))
+ path := "/networks?" + qs.Encode()
resp, err := c.do("GET", path, doOptions{})
if err != nil {
return nil, err