diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2017-02-13 18:03:52 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2017-02-20 17:02:11 +0000 |
commit | 0372dfe39c613d91939e3bdeee9966b1f1e583ab (patch) | |
tree | acc0a1f5f71d4f237d8ec11e3caeb8e09f4b06d3 | |
parent | a2dc73460f37ec832da9867a3e5d8f97d4ec61f8 (diff) | |
download | sos-0372dfe39c613d91939e3bdeee9966b1f1e583ab.tar.gz |
[npm] use standard suggest_filename patterns in add_cmd_output
Replace "-" by "_" in resulting filenames.
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/plugins/npm.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sos/plugins/npm.py b/sos/plugins/npm.py index 634325fa..cbf35621 100644 --- a/sos/plugins/npm.py +++ b/sos/plugins/npm.py @@ -81,16 +81,16 @@ class Npm(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin, SuSEPlugin): output[name].append(version) self._log_debug("modules in cache: %s" % output) - outfn = self._make_command_filename("npm-cache-modules") + outfn = self._make_command_filename("npm_cache_modules") self.archive.add_string(json.dumps(output), outfn) def setup(self): if self.get_option("project_path") != 0: project_path = os.path.abspath(os.path.expanduser( self.get_option("project_path"))) - self._get_npm_output("npm ls --json", "npm-ls-project", + self._get_npm_output("npm ls --json", "npm_ls_project", working_directory=project_path) - self._get_npm_output("npm ls -g --json", "npm-ls-global") + self._get_npm_output("npm ls -g --json", "npm_ls_global") self._find_modules_in_npm_cache() |