aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Clark <wclark@redhat.com>2019-06-24 23:59:06 -0400
committerBryn M. Reeves <bmr@redhat.com>2019-09-25 18:38:54 +0100
commite09c1ea871bcc0ca8d43dcf430d70bf150791302 (patch)
tree8af1e95fb258b2009511dbf35ef4a90a0eab877d
parent7b91a37dfbff0f85bf032f9618e379fc3c837260 (diff)
downloadsos-e09c1ea871bcc0ca8d43dcf430d70bf150791302.tar.gz
[python] collect pip list
Resolves: #1708 Signed-off-by: William Bradford Clark <wclark@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/python.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sos/plugins/python.py b/sos/plugins/python.py
index dc719fba..e355f518 100644
--- a/sos/plugins/python.py
+++ b/sos/plugins/python.py
@@ -23,6 +23,7 @@ class Python(Plugin, DebianPlugin, UbuntuPlugin):
def setup(self):
self.add_cmd_output("python -V", suggest_filename="python-version")
+ self.add_cmd_output("pip list")
class RedHatPython(Python, RedHatPlugin):
@@ -31,6 +32,7 @@ class RedHatPython(Python, RedHatPlugin):
def setup(self):
self.add_cmd_output(['python2 -V', 'python3 -V'])
+ self.add_cmd_output("pip list")
if isinstance(self.policy, sos.policies.redhat.RHELPolicy) and \
self.policy.dist_version() > 7:
self.add_cmd_output(