From e0c2916ae70294fae2162c51d57a5d87464157a0 Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Mon, 6 Mar 2017 16:29:26 +0100 Subject: [npm] get project's npm config list only if project_path is set _get_npm_output with working_directory=project_path must be called only if project_path is configured Resolves: #951 Signed-off-by: Pavel Moravec --- sos/plugins/npm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sos/plugins/npm.py b/sos/plugins/npm.py index ab51e4af..c23a2d96 100644 --- a/sos/plugins/npm.py +++ b/sos/plugins/npm.py @@ -90,9 +90,9 @@ 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 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") -- cgit