From bd53d2e20ba0009723d7b72d7091365391ade468 Mon Sep 17 00:00:00 2001 From: pcarrier Date: Mon, 22 Nov 2010 20:45:30 +0000 Subject: A little less craziness. git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1024 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- sos/plugintools.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sos/plugintools.py b/sos/plugintools.py index 6f3a4df6..55bfdf9e 100644 --- a/sos/plugintools.py +++ b/sos/plugintools.py @@ -300,11 +300,15 @@ class PluginBase: self.collectExtOutput("tail -c%d %s" % (sizelimit, flog), "tail_" + os.path.basename(flog), flog[1:] + ".tailed") + def addCopySpecs(self, copyspecs): + for copyspec in copyspecs: + self.addCopySpec(copyspec) + def addCopySpec(self, copyspec): """ Add a file specification (can be file, dir,or shell glob) to be copied into the sosreport by this module """ - if not ( copyspec and len(copyspec) ): + if not (copyspec and len(copyspec)): # self.soslog.warning("invalid file path") return False # Glob case handling is such that a valid non-glob is a reduced glob -- cgit