summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-22 16:19:11 -0400
committerGitHub <noreply@github.com>2020-10-22 16:19:11 -0400
commita53a660313c6539c3e4a3558beb49836ca76d46f (patch)
tree3b887656f560a4d997a7456572738088e5ad8892 /libpod
parentd340f8523c9610644c8a195d1e3e9b3a5d32c5b3 (diff)
parent68419365257f1fcaa638605576a0583ef282a5a5 (diff)
downloadpodman-a53a660313c6539c3e4a3558beb49836ca76d46f.tar.gz
podman-a53a660313c6539c3e4a3558beb49836ca76d46f.tar.bz2
podman-a53a660313c6539c3e4a3558beb49836ca76d46f.zip
Merge pull request #8078 from baude/networkdisconnect
APIv2 compatibility network connect|disconnect
Diffstat (limited to 'libpod')
-rw-r--r--libpod/events/filters.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/events/filters.go b/libpod/events/filters.go
index c50474007..171e2237f 100644
--- a/libpod/events/filters.go
+++ b/libpod/events/filters.go
@@ -73,8 +73,8 @@ func generateEventUntilOption(timeUntil time.Time) func(e *Event) bool {
}
func parseFilter(filter string) (string, string, error) {
- filterSplit := strings.Split(filter, "=")
- if len(filterSplit) != 2 {
+ filterSplit := strings.SplitN(filter, "=", 2)
+ if len(filterSplit) == 1 {
return "", "", errors.Errorf("%s is an invalid filter", filter)
}
return filterSplit[0], filterSplit[1], nil