aboutsummaryrefslogtreecommitdiffstats
path: root/sos/plugins/apache.py
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-09-30 18:34:21 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-09-30 18:37:31 +0100
commitc2b5e76f22531da9a53d25ced6debdf79d9ef9c2 (patch)
tree45a28b1e6082d13ad43c6de68fa87acf5d7a2af5 /sos/plugins/apache.py
parente945c1c7f7cb726b6b6f9e897b41c5dac609c34e (diff)
downloadsos-c2b5e76f22531da9a53d25ced6debdf79d9ef9c2.tar.gz
[Plugin] remove add_copy_specs()
Merge add_copy_specs() into add_copy_spec() and treat any strings passed to the new method as though they were a single item list. Mirrors the prior change to add_cmd_outputs(). Fixes #301. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'sos/plugins/apache.py')
-rw-r--r--sos/plugins/apache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/plugins/apache.py b/sos/plugins/apache.py
index aea98965..dc700cb0 100644
--- a/sos/plugins/apache.py
+++ b/sos/plugins/apache.py
@@ -32,7 +32,7 @@ class RedHatApache(Apache, RedHatPlugin):
def setup(self):
super(RedHatApache, self).setup()
- self.add_copy_specs([
+ self.add_copy_spec([
"/etc/httpd/conf/httpd.conf",
"/etc/httpd/conf.d/*.conf"
])
@@ -53,7 +53,7 @@ class DebianApache(Apache, DebianPlugin, UbuntuPlugin):
def setup(self):
super(DebianApache, self).setup()
- self.add_copy_specs([
+ self.add_copy_spec([
"/etc/apache2/*",
"/etc/default/apache2"
])