blob: 8068e05cd020883ff13ba465ab3c530e147a26d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
from sos.plugins import Plugin, RedHatPlugin
# Class name must be the same as file name and method names must not change
class RhevM(Plugin, RedHatPlugin):
"""RHEV-Manager related information"""
plugin_name = 'rhevm'
option_list = [("vdsmlogs", 'Directory containing all of the SOS logs from the RHEV hypervisor(s)', '', False)]
def setup(self):
# Copy rhevm config files.
self.add_copy_spec("/etc/rhevm")
self.add_copy_spec("/var/log/rhevm")
if self.get_option("vdsmlogs"):
self.add_copy_spec(str(self.get_option("vdsmlogs")))
def postproc(self):
"""
Obfuscate passwords.
"""
self.do_file_sub("/etc/rhevm/rhevm-config/rhevm-config.properties",
r"Password.type=(.*)",
r'Password.type=********')
|