diff options
-rw-r--r-- | sos/plugins/__init__.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py index 5b76df2d..5e59aa68 100644 --- a/sos/plugins/__init__.py +++ b/sos/plugins/__init__.py @@ -923,8 +923,11 @@ class Plugin(object): file_name = _file if file_name[0] == os.sep: file_name = file_name.lstrip(os.sep) - strfile = file_name.replace(os.path.sep, ".") + ".tailed" - self.add_string_as_file(tail(_file, sizelimit), strfile) + strfile = ( + file_name.replace(os.path.sep, ".") + ".tailed" + ) + self.add_string_as_file(tail(_file, sizelimit), + strfile) rel_path = os.path.relpath('/', os.path.dirname(_file)) link_path = os.path.join(rel_path, 'sos_strings', self.name(), strfile) |