Blob Blame History Raw
From bbd28011f8bb710d64283bd6d3ec68c0fb5430b4 Mon Sep 17 00:00:00 2001
From: Pavel Moravec <pmoravec@redhat.com>
Date: Fri, 6 Nov 2020 21:28:37 +0100
Subject: [PATCH] [ovirt] collect /etc/pki/ovirt-engine/.truststore

.truststore contains useful public CAs but a_c_s skips collecting
that hidden file.

Closes: #2296
Resolves: #2297

Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
---
 sos/report/plugins/ovirt.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/sos/report/plugins/ovirt.py b/sos/report/plugins/ovirt.py
index 4c112cac..127c971c 100644
--- a/sos/report/plugins/ovirt.py
+++ b/sos/report/plugins/ovirt.py
@@ -137,12 +137,15 @@ class Ovirt(Plugin, RedHatPlugin):
             "/var/lib/ovirt-engine-reports/jboss_runtime/config"
         ])
 
-        # Copying host certs.
+        # Copying host certs; extra copy the hidden .truststore file
         self.add_forbidden_path([
             "/etc/pki/ovirt-engine/keys",
             "/etc/pki/ovirt-engine/private"
         ])
-        self.add_copy_spec("/etc/pki/ovirt-engine/")
+        self.add_copy_spec([
+            "/etc/pki/ovirt-engine/",
+            "/etc/pki/ovirt-engine/.truststore",
+        ])
 
     def postproc(self):
         """
-- 
2.26.2