aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-10-15 12:41:24 +0100
committerBryn M. Reeves <bmr@redhat.com>2015-10-15 12:41:24 +0100
commitf4da66aeda8ca44621a9bdef14a46f52bc24ac98 (patch)
treeb0827a42ce2dc2fcd115ffa4935e99e4648e091b
parente137e9b0b79bd6e8a50fa5cae9a8ac13738ec666 (diff)
downloadsos-f4da66aeda8ca44621a9bdef14a46f52bc24ac98.tar.gz
[insights] minor style fixes
-rw-r--r--sos/plugins/insights.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/sos/plugins/insights.py b/sos/plugins/insights.py
index 0f5a57b0..3bbbb5f6 100644
--- a/sos/plugins/insights.py
+++ b/sos/plugins/insights.py
@@ -25,18 +25,19 @@ class RedHatAccessInsights(Plugin, RedHatPlugin):
def setup(self):
log_size = self.get_option('log_size')
- self.add_copy_spec(
- self.conf_file)
- self.add_copy_spec_limit(
- '/var/log/redhat-access-insights/*.log',
- sizelimit=log_size)
+ self.add_copy_spec(self.conf_file)
+ self.add_copy_spec_limit('/var/log/redhat-access-insights/*.log',
+ sizelimit=log_size)
def postproc(self):
self.do_file_sub(
self.conf_file,
r'(password[\t\ ]*=[\t\ ]*)(.+)',
- r'\1********')
+ r'\1********'
+ )
+
self.do_file_sub(
self.conf_file,
r'(proxy[\t\ ]*=.*)(:)(.*)(@.*)',
- r'\1\2********\4')
+ r'\1\2********\4'
+ )