diff --git a/fail2ban/server/filtersystemd.py b/fail2ban/server/filtersystemd.py index 47fc891e..1b33b115 100644 --- a/fail2ban/server/filtersystemd.py +++ b/fail2ban/server/filtersystemd.py @@ -94,6 +94,11 @@ class FilterSystemd(JournalFilter): # pragma: systemd no cover # be sure all journal types will be opened if files specified (don't set flags): if 'files' not in args or not len(args['files']): args['flags'] = 4 + + try: + args['namespace'] = kwargs.pop('namespace') + except KeyError: + pass return args