aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2019-09-27 16:20:30 +0200
committerBryn M. Reeves <bmr@redhat.com>2019-10-08 16:03:22 +0100
commit0c9ef08689afd48e837065da2d3f3f9ae9c1cbcd (patch)
treea34a7131bdd52f13df1a5a1240a751ca50e96df4
parent8448a7e232f4773c8421dcfe79f549e60e077ca4 (diff)
downloadsos-0c9ef08689afd48e837065da2d3f3f9ae9c1cbcd.tar.gz
[foreman] collect http[|s]_proxy env.variables
Presence or values of the variables is crucial in some foreman-installer issues. Resolves: #1804 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/foreman.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sos/plugins/foreman.py b/sos/plugins/foreman.py
index 12fa6057..5bf0a221 100644
--- a/sos/plugins/foreman.py
+++ b/sos/plugins/foreman.py
@@ -217,6 +217,9 @@ class Foreman(Plugin):
self.add_cmd_output(_cmd, suggest_filename=dyn, timeout=600,
env=self.env)
+ # collect http[|s]_proxy env.variables
+ self.add_env_var(["http_proxy", "https_proxy"])
+
def build_query_cmd(self, query, csv=False):
"""
Builds the command needed to invoke the pgsql query as the postgres