From 99fc28b640ccadde37f83d87fcffba098a244253 Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Wed, 16 May 2018 14:06:14 +0200 Subject: [lustre] make the join call py3 compatible python3 fails with "cannot import name 'join'" error otherwise Resolves: #1297 Signed-off-by: Pavel Moravec --- sos/plugins/lustre.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sos/plugins/lustre.py b/sos/plugins/lustre.py index 8c24f60c..b3d47c28 100644 --- a/sos/plugins/lustre.py +++ b/sos/plugins/lustre.py @@ -7,7 +7,6 @@ # See the LICENSE file in the source distribution for further information. from sos.plugins import Plugin, RedHatPlugin -from string import join class Lustre(Plugin, RedHatPlugin): @@ -22,7 +21,7 @@ class Lustre(Plugin, RedHatPlugin): file. ''' - self.add_cmd_output("lctl get_param %s" % join(param_list, " "), + self.add_cmd_output("lctl get_param %s" % " ".join(param_list), suggest_filename="params-%s" % name, stderr=False) -- cgit