aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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