diff --git a/pkg/netpol/connlist/conns_formatter_md.go b/pkg/netpol/connlist/conns_formatter_md.go index af0c7a6f..256d76c3 100644 --- a/pkg/netpol/connlist/conns_formatter_md.go +++ b/pkg/netpol/connlist/conns_formatter_md.go @@ -45,7 +45,7 @@ func getMDLine(c singleConnFields, srcFirst bool) string { // writeOutput returns a md string form of connections from list of Peer2PeerConnection objects, // and exposure analysis results from list ExposedPeer if exists -func (md *formatMD) writeOutput(conns []Peer2PeerConnection, exposureConns []ExposedPeer, exposureFlag bool, explain bool) (string, error) { +func (md *formatMD) writeOutput(conns []Peer2PeerConnection, exposureConns []ExposedPeer, exposureFlag, explain bool) (string, error) { // Tanya TODO - handle explain flag // first write connlist lines allLines := md.writeMdConnlistLines(conns, exposureFlag, explain) diff --git a/pkg/netpol/connlist/conns_formatter_txt.go b/pkg/netpol/connlist/conns_formatter_txt.go index 168f142a..4ea945b4 100644 --- a/pkg/netpol/connlist/conns_formatter_txt.go +++ b/pkg/netpol/connlist/conns_formatter_txt.go @@ -18,7 +18,7 @@ type formatText struct { // writeOutput returns a textual string format of connections from list of Peer2PeerConnection objects, // and exposure analysis results if exist -func (t *formatText) writeOutput(conns []Peer2PeerConnection, exposureConns []ExposedPeer, exposureFlag bool, explain bool) (string, error) { +func (t *formatText) writeOutput(conns []Peer2PeerConnection, exposureConns []ExposedPeer, exposureFlag, explain bool) (string, error) { res := t.writeConnlistOutput(conns, exposureFlag, explain) if !exposureFlag { return res, nil