diff options
-rw-r--r-- | sos/plugins/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py index 7758fa99..f78f1e21 100644 --- a/sos/plugins/__init__.py +++ b/sos/plugins/__init__.py @@ -517,6 +517,7 @@ class Plugin(object): def add_string_as_file(self, content, filename): """Add a string to the archive as a file named `filename`""" self.copy_strings.append((content, filename)) + content = "..." + content.splitlines()[0] self.log_debug("added string '%s' as '%s'" % (content,filename)) def get_cmd_output_now(self, exe, suggest_filename=None, @@ -584,7 +585,7 @@ class Plugin(object): def collect_strings(self): for string, file_name in self.copy_strings: self.log_info("collecting string '%s' as '%s'" - % (string, file_name)) + % ("..." + string.splitlines()[0], file_name)) try: self.archive.add_string(string, os.path.join('sos_strings', self.name(), file_name)) |