Skip to content

Commit

Permalink
[system] List env_var names
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Fernández Rodríguez <[email protected]>
  • Loading branch information
pafernanr committed Sep 27, 2024
1 parent 60356d6 commit 7b39f30
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 7b39f30

Please sign in to comment.