diff options
-rw-r--r-- | sos/plugins/npm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/npm.py b/sos/plugins/npm.py index 40807747..0fc95801 100644 --- a/sos/plugins/npm.py +++ b/sos/plugins/npm.py @@ -76,7 +76,7 @@ class Npm(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin, SuSEPlugin): self._log_debug("modules in cache: %s" % output) outfn = self._make_command_filename("npm_cache_modules") - self.archive.add_string(json.dumps(output), outfn) + self.add_string_as_file(json.dumps(output), outfn) def setup(self): if self.get_option("project_path") != 0: |