aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPoornima Kshirsagar <pkshiras@redhat.com>2016-07-18 17:13:10 +0530
committerBryn M. Reeves <bmr@redhat.com>2017-01-17 12:25:36 +0000
commitd0bcd552f4bc2119afd2a835f4e5ec1107421f40 (patch)
treee8b9e27ee498ec5c62a97b3b4ffb37a674dea4b6
parent6263eccdd9f0f66c2f7926148ed35084a9810b7d (diff)
downloadsos-d0bcd552f4bc2119afd2a835f4e5ec1107421f40.tar.gz
[openstack_horizon] fix regex in postproc method
"The regex needs to handle in openstack_horizon: currently the configurations are listed by "/etc/openstack-dashboard/local_settings" causing below errors: regex substitution failed for '/etc/openstack-dashboard/local_settings.d/_11_rcue_theme.pyc' Purposing a fix by changing the regex to match only intended configuration files (*.conf*) in this directory. Signed-off-by: Poornima M. Kshirsagar pkshiras@redhat.com
-rw-r--r--sos/plugins/openstack_horizon.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/openstack_horizon.py b/sos/plugins/openstack_horizon.py
index b6e32c8f..35aff725 100644
--- a/sos/plugins/openstack_horizon.py
+++ b/sos/plugins/openstack_horizon.py
@@ -48,7 +48,8 @@ class OpenStackHorizon(Plugin):
regexp = r"((?m)^\s*(%s)\s*=\s*)(.*)" % "|".join(protect_keys)
self.do_path_regex_sub("/etc/openstack-dashboard/.*\.json",
regexp, r"\1*********")
- self.do_path_regex_sub("/etc/openstack-dashboard/local_settings",
+ self.do_path_regex_sub("/etc/openstack-dashboard/local_settings/ + \
+ .*\.conf.*",
regexp, r"\1*********")