From d0bcd552f4bc2119afd2a835f4e5ec1107421f40 Mon Sep 17 00:00:00 2001 From: Poornima Kshirsagar Date: Mon, 18 Jul 2016 17:13:10 +0530 Subject: [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 --- sos/plugins/openstack_horizon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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*********") -- cgit