Merge "Fix greping of the journalctl log for neutron notification line"

This commit is contained in:
Zuul 2021-01-28 19:32:41 +00:00 committed by Gerrit Code Review
commit 259c5246b3

@ -91,8 +91,8 @@ class JournalLogDigger(LogFileDigger):
try: try:
result = sh.execute(["journalctl", '--no-pager', result = sh.execute(["journalctl", '--no-pager',
"--unit", self.filename, "--unit", self.filename,
"--since", "5 minutes ago", "--since", "30 minutes ago",
'--grep', pattern], '--grep', "'%s'" % pattern],
**self.execute_params) **self.execute_params)
except sh.ShellCommandFailed as ex: except sh.ShellCommandFailed as ex:
if ex.stdout.endswith('-- No entries --\n'): if ex.stdout.endswith('-- No entries --\n'):