1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 10:39:53 +00:00

Merge pull request #1503 from brknkfr/corwdsec_decisions_limit

[crowdsec]: Increase decisions to 1000 (more than default 100)
This commit is contained in:
Kenyon Ralph 2025-07-13 12:50:46 -07:00 committed by GitHub
commit cceb4a7db7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,7 @@ class Decisions():
def __init__(self):
_state = state.read_section('scenarios')
self.state = _state if _state is not None else {}
self.data = call_cli('decisions', 'list')
self.data = call_cli('decisions', 'list', '--limit', '1000')
if self.data is not None:
self.decisions = len(self.data)
self.banned_ips = len(set([d['source']['ip'] for d in self.data if d['source']['scope'] == 'Ip'])) # noqa: E501