Fix API push (#62)

* add debug

* debug

* remove debug

* remove typo

* fix linter

Co-authored-by: AlteredCoder <AlteredCoder>
This commit is contained in:
AlteredCoder 2020-06-03 14:24:07 +02:00 committed by GitHub
parent f9a4ae2b3f
commit fc05a49cc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)