Pārlūkot izejas kodu

Fix API push (#62)

* add debug

* debug

* remove debug

* remove typo

* fix linter

Co-authored-by: AlteredCoder <AlteredCoder>
AlteredCoder 5 gadi atpakaļ
vecāks
revīzija
fc05a49cc3
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      pkg/outputs/ouputs.go

+ 1 - 1
pkg/outputs/ouputs.go

@@ -156,7 +156,7 @@ func (o *Output) ProcessOutput(sig types.SignalOccurence, profiles []types.Profi
 		}
 
 		// if ApiPush is nil (not specified in profile configuration) we use global api config (from default.yaml)
-		if profile.ApiPush == nil {
+		if profile.ApiPush == nil || *profile.ApiPush {
 			if o.API != nil { // if API is not nil, we can push
 				if err = o.API.AppendSignal((sig)); err != nil {
 					return fmt.Errorf("failed to append signal : %s", err)