From 8fcc7bb71b48bcd50f9b256d38496e32aa12f825 Mon Sep 17 00:00:00 2001 From: James Laska Date: Thu, 14 Aug 2014 13:40:21 -0400 Subject: [PATCH] Account for sosreport-3.0 plugin format --- tools/sosreport/tower.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/sosreport/tower.py b/tools/sosreport/tower.py index 99e0d6bc56..f337c754d4 100644 --- a/tools/sosreport/tower.py +++ b/tools/sosreport/tower.py @@ -38,7 +38,10 @@ if LooseVersion(sos.__version__) >= LooseVersion('3.0'): self.add_copy_spec(path) for command in commands: - self.collect_ext_output(command) + if hasattr(self, 'add_cmd_output'): + self.add_cmd_output(command) + else: + self.collect_ext_output(command) else: import sos.plugintools