Skip to content

Commit

Permalink
[system] List env_var names
Browse files Browse the repository at this point in the history
Closes: #3794

Signed-off-by: Pablo Fernández Rodríguez <[email protected]>
Signed-off-by: Pavel Moravec <[email protected]>
  • Loading branch information
pafernanr authored and pmoravec committed Nov 20, 2024
1 parent c5068dc commit 2f0b286
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sos/report/plugins/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#
# See the LICENSE file in the source distribution for further information.

import os
from sos.report.plugins import Plugin, IndependentPlugin


Expand Down Expand Up @@ -40,6 +41,12 @@ def setup(self):
"ld.so --list-tunables"
])

var_names = list(os.environ.keys())
var_names.sort()
self.add_string_as_file('\n'.join(var_names),
"environment_varnames",
plug_dir=True)

def postproc(self):
self.do_paths_http_sub([
"/etc/sysconfig",
Expand Down

0 comments on commit 2f0b286

Please sign in to comment.