aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-05-03 20:37:44 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-05-03 20:37:44 +0000
commit13a63635b38f918476c6af64d69867ff422ccfda (patch)
treea338f0022e6cf680a547b5ab191afe19c9be2f2e
parent4e7fa2aa6eedd118e0dbb9a06734754c193cff54 (diff)
downloadsos-13a63635b38f918476c6af64d69867ff422ccfda.tar.gz
fixed exception rhbz588223
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@955 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r--sos/plugins/veritas.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/sos/plugins/veritas.py b/sos/plugins/veritas.py
index bb570294..e1cdf7af 100644
--- a/sos/plugins/veritas.py
+++ b/sos/plugins/veritas.py
@@ -30,11 +30,12 @@ class veritas(sos.plugintools.PluginBase):
def setup(self):
""" interface with vrtsexplorer to capture veritas related data """
- stat, out, runtime = self.callExtProg(self.getOption("script"))
- for line in out.readlines():
- line = line.strip()
- tarfile = self.doRegexFindAll(r"ftp (.*tar.gz)", line)
- if len(tarfile) == 1:
- self.addCopySpec(tarfile[0])
+ if os.path.isfile(self.getOption("script")):
+ stat, out, runtime = self.callExtProg(self.getOption("script"))
+ for line in out.readlines():
+ line = line.strip()
+ tarfile = self.doRegexFindAll(r"ftp (.*tar.gz)", line)
+ if len(tarfile) == 1:
+ self.addCopySpec(tarfile[0])
return