diff options
author | William Clark <wclark@redhat.com> | 2019-06-24 23:59:06 -0400 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-09-25 18:38:54 +0100 |
commit | e09c1ea871bcc0ca8d43dcf430d70bf150791302 (patch) | |
tree | 8af1e95fb258b2009511dbf35ef4a90a0eab877d | |
parent | 7b91a37dfbff0f85bf032f9618e379fc3c837260 (diff) | |
download | sos-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.py | 2 |
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( |