aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2018-05-16 14:06:14 +0200
committerBryn M. Reeves <bmr@redhat.com>2018-05-24 15:28:19 +0100
commit99fc28b640ccadde37f83d87fcffba098a244253 (patch)
treeff2d6c5e024ac7f77e6c1a3f999038b158dc30b2
parent68dbbf97bc88e11f067753cd6496842633c3410e (diff)
downloadsos-99fc28b640ccadde37f83d87fcffba098a244253.tar.gz
[lustre] make the join call py3 compatible
python3 fails with "cannot import name 'join'" error otherwise Resolves: #1297 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/lustre.py3
1 files changed, 1 insertions, 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)