amend to a0093b557e (systemd-review): flags cannot be specified simultaneously with files too;

pull/4006/head
sebres 2025-04-24 00:04:37 +02:00
parent d731b385f9
commit cbc3cb431c
1 changed files with 3 additions and 1 deletions

View File

@ -156,7 +156,9 @@ class FilterSystemd(JournalFilter): # pragma: systemd no cover
args.get('flags', journal.LOCAL_ONLY), args.get('path'))
if args['files']:
args['files'] = list(args['files'])
args['path'] = None; # cannot be cannot be specified simultaneously with files
# flags and path cannot be specified simultaneously with files:
args['flags'] = None;
args['path'] = None;
else:
args['files'] = None