From f53b9c15d5b63d1e07fbb232984945619bbbe991 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Mon, 15 Sep 2014 00:20:50 +0100 Subject: [veritas] fix call_ext_prog usage Signed-off-by: Bryn M. Reeves --- sos/plugins/veritas.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sos/plugins/veritas.py b/sos/plugins/veritas.py index a04b0b2a..1ccc0b8c 100644 --- a/sos/plugins/veritas.py +++ b/sos/plugins/veritas.py @@ -33,13 +33,12 @@ class Veritas(Plugin, RedHatPlugin): def setup(self): """ interface with vrtsexplorer to capture veritas related data """ r = self.call_ext_prog(self.get_option("script")) - try: + if r['status'] == 0: + tarfile = "" for line in r['output']: line = line.strip() tarfile = self.do_regex_find_all(r"ftp (.*tar.gz)", line) if len(tarfile) == 1: self.add_copy_spec(tarfile[0]) - except AttributeError as e: - self.add_alert(e) # vim: et ts=4 sw=4 -- cgit