aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2019-02-07 16:22:54 +0100
committerBryn M. Reeves <bmr@redhat.com>2019-03-20 15:57:20 +0000
commitf2b3c72d31e098644566b7a7297082464ec7141d (patch)
tree5b2b82bbc0154b3ddaad01082797bb09d3381cd9
parentc6bf39dd21d250faf43ef04f01ac2d8d5bf8bc21 (diff)
downloadsos-f2b3c72d31e098644566b7a7297082464ec7141d.tar.gz
[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 <pmoravec@redhat.com>
-rw-r--r--sos/plugins/ovirt.py6
1 files 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.*?)?$
"""
)