diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2017-02-13 19:21:08 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2017-02-20 17:02:11 +0000 |
commit | 581277ba1a7548ba26d113957adfc9dcb4de13b4 (patch) | |
tree | 15a08efe7b32dd10715a37e533103200f87fbbec | |
parent | 0372dfe39c613d91939e3bdeee9966b1f1e583ab (diff) | |
download | sos-581277ba1a7548ba26d113957adfc9dcb4de13b4.tar.gz |
[npm] collect config lists
Collect npm config list (globally and per-project).
Resolves: #917
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/plugins/npm.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sos/plugins/npm.py b/sos/plugins/npm.py index cbf35621..ab51e4af 100644 --- a/sos/plugins/npm.py +++ b/sos/plugins/npm.py @@ -90,7 +90,12 @@ class Npm(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin, SuSEPlugin): self.get_option("project_path"))) self._get_npm_output("npm ls --json", "npm_ls_project", working_directory=project_path) + self._get_npm_output("npm config list -l", + "npm_config_list_project", + working_directory=project_path) + self._get_npm_output("npm ls -g --json", "npm_ls_global") + self._get_npm_output("npm config list -l", "npm_config_list_global") self._find_modules_in_npm_cache() |