mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
do not try to load PAPI is url is not set (#2099)
This commit is contained in:
parent
e27a0a0e14
commit
16a3be49e2
6 changed files with 33 additions and 29 deletions
|
@ -293,7 +293,7 @@ func (p *Papi) SyncDecisions() error {
|
|||
go p.SendDeletedDecisions(&cacheCopy)
|
||||
}
|
||||
case deletedDecisions := <-p.Channels.DeleteDecisionChannel:
|
||||
if (p.consoleConfig.ShareManualDecisions != nil && *p.consoleConfig.ShareManualDecisions) || (p.consoleConfig.ReceiveDecisions != nil && *p.consoleConfig.ReceiveDecisions) {
|
||||
if (p.consoleConfig.ShareManualDecisions != nil && *p.consoleConfig.ShareManualDecisions) || (p.consoleConfig.ConsoleManagement != nil && *p.consoleConfig.ConsoleManagement) {
|
||||
var tmpDecisions []models.DecisionsDeleteRequestItem
|
||||
p.Logger.Debugf("%d decisions deletion to add in cache", len(deletedDecisions))
|
||||
for _, decision := range deletedDecisions {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue