Skip to content

Commit 974b3f5

Browse files
committed
Use flags list
1 parent 2d5a760 commit 974b3f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/pipeline/transform/transform_network.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"net"
2323
"os"
2424
"strconv"
25-
"strings"
2625
"time"
2726

2827
"github.com/netobserv/flowlogs-pipeline/pkg/api"
@@ -146,7 +145,7 @@ func (n *Network) Transform(inputEntry config.GenericMap) (config.GenericMap, bo
146145
if anyFlags, ok := outputEntry[rule.DecodeTCPFlags.Input]; ok && anyFlags != nil {
147146
if flags, ok := anyFlags.(uint16); ok {
148147
flags := util.DecodeTCPFlags(flags)
149-
outputEntry[rule.DecodeTCPFlags.Output] = strings.Join(flags, ",")
148+
outputEntry[rule.DecodeTCPFlags.Output] = flags
150149
}
151150
}
152151

0 commit comments

Comments
 (0)