diff options
author | pcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-11-22 20:45:30 +0000 |
---|---|---|
committer | pcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-11-22 20:45:30 +0000 |
commit | bd53d2e20ba0009723d7b72d7091365391ade468 (patch) | |
tree | 2a62d0e73742320f869bc3acf09b8acd37a04b48 | |
parent | 9e6654e8e0d0e62efd383ff2992657dfaefdac58 (diff) | |
download | sos-bd53d2e20ba0009723d7b72d7091365391ade468.tar.gz |
A little less craziness.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1024 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r-- | sos/plugintools.py | 6 |
1 files changed, 5 insertions, 1 deletions
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 |