From f2b3c72d31e098644566b7a7297082464ec7141d Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Thu, 7 Feb 2019 16:22:54 +0100 Subject: [ovirt] fix LGTM warning about regular expressions caret at the beginning of line, dollar at the end Relevant to: #1559 Signed-off-by: Pavel Moravec --- sos/plugins/ovirt.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sos/plugins/ovirt.py b/sos/plugins/ovirt.py index 1cd50583..9f4a18c2 100644 --- a/sos/plugins/ovirt.py +++ b/sos/plugins/ovirt.py @@ -39,12 +39,10 @@ class Ovirt(Plugin, RedHatPlugin): DB_PASS_FILES = re.compile( flags=re.VERBOSE, pattern=r""" - ^ - /etc/ + ^/etc/ (rhevm|ovirt-engine|ovirt-engine-dwh)/ (engine.conf|ovirt-engine-dwhd.conf) - (\.d/.+.conf.*?)? - $ + (\.d/.+.conf.*?)?$ """ ) -- cgit