diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2014-09-15 00:20:50 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2014-09-15 00:20:50 +0100 |
commit | f53b9c15d5b63d1e07fbb232984945619bbbe991 (patch) | |
tree | 2f284559325594b67252d777cafc73fa9aa93e40 | |
parent | 84771902499fbddcbe9e5a8205c4111bb34bb698 (diff) | |
download | sos-f53b9c15d5b63d1e07fbb232984945619bbbe991.tar.gz |
[veritas] fix call_ext_prog usage
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/veritas.py | 5 |
1 files 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 |