aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2022-10-19 12:58:45 -0400
committerJake Hunsaker <jhunsake@redhat.com>2022-10-24 16:00:12 -0400
commit91cce33a1c9b3cff0795c7e573813d3394cc4107 (patch)
tree9a8ab8880590e5dd707d518050c6ff44c75779ac
parenta0112b5a4b68b5bb88a01f5b33ff99ce075b8a87 (diff)
downloadsos-91cce33a1c9b3cff0795c7e573813d3394cc4107.tar.gz
[ssh] Refine ssh config tags
Refines the tags for `ssh_config` and `sshd_config` so that they are more explicitly assigned to the base files, and not subsequent conf directories beyond the tagging assigned to those directories. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/report/plugins/ssh.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/report/plugins/ssh.py b/sos/report/plugins/ssh.py
index 9ac9dec0..0fe5dd4e 100644
--- a/sos/report/plugins/ssh.py
+++ b/sos/report/plugins/ssh.py
@@ -21,8 +21,8 @@ class Ssh(Plugin, IndependentPlugin):
def setup(self):
self.add_file_tags({
- '/etc/ssh/sshd_config': 'sshd_config',
- '/etc/ssh/ssh_config': 'ssh_config'
+ '/etc/ssh/sshd_config$': 'sshd_config',
+ '/etc/ssh/ssh_config$': 'ssh_config'
})
sshcfgs = [