aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2019-05-16 11:35:05 -0400
committerPavel Moravec <pmoravec@redhat.com>2019-08-25 10:37:02 +0200
commit16b34c7e2097e389b90647d76c6693b7d8d8093e (patch)
treea98b89805a2d56df307099a28ac631facbba4d6f
parent8b04034fe735347b563d5a5fda58857f4b665803 (diff)
downloadsos-16b34c7e2097e389b90647d76c6693b7d8d8093e.tar.gz
[libraries] Add path environment variables
Adds collections of path related env vars. Resolves: #1679 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/libraries.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/sos/plugins/libraries.py b/sos/plugins/libraries.py
index 03f79dab..5365fac7 100644
--- a/sos/plugins/libraries.py
+++ b/sos/plugins/libraries.py
@@ -25,6 +25,12 @@ class Libraries(Plugin, RedHatPlugin, UbuntuPlugin):
if self.get_option("ldconfigv"):
self.add_cmd_output("ldconfig -v -N -X")
+ self.add_env_var([
+ 'PATH',
+ 'LD_LIBRARY_PATH',
+ 'LD_PRELOAD'
+ ])
+
ldconfig_file = self.get_cmd_output_now("ldconfig -p -N -X")
if not ldconfig_file: