File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import (
1717)
1818
1919type stringslice []string
20- type notifyfilter map [string ][]string
20+ type mapstringslice map [string ][]string
2121
2222var (
2323 buildVersion string
2828 notifyOutput bool
2929 notifyContainerID string
3030 notifyContainerSignal int
31- notifyContainerFilter notifyfilter = make (notifyfilter )
31+ notifyContainerFilter mapstringslice = make (mapstringslice )
3232 onlyExposed bool
3333 onlyPublished bool
3434 includeStopped bool
@@ -53,13 +53,15 @@ func (strings *stringslice) Set(value string) error {
5353 return nil
5454}
5555
56- func (filter * notifyfilter ) String () string {
56+ func (filter * mapstringslice ) String () string {
5757 return "[string][]string"
5858}
5959
60- func (filter * notifyfilter ) Set (value string ) error {
61- name , value , _ := strings .Cut (value , "=" )
62- (* filter )[name ] = append ((* filter )[name ], value )
60+ func (filter * mapstringslice ) Set (value string ) error {
61+ name , value , found := strings .Cut (value , "=" )
62+ if found {
63+ (* filter )[name ] = append ((* filter )[name ], value )
64+ }
6365 return nil
6466}
6567
You can’t perform that action at this time.
0 commit comments