aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaphael Badin <raphael.badin@canonical.com>2014-01-06 15:01:40 +0100
committerAdam Stokes <adam.stokes@ubuntu.com>2014-01-06 10:35:03 -0500
commit76e7888a46019d7a94235077e354e6559eee2e4b (patch)
tree7d48ed755e5c16cc4aeaa5652409d23d3111ec89
parent9497e36c20c5f6a7f7ac2ede919c5b4791b0f6b4 (diff)
downloadsos-76e7888a46019d7a94235077e354e6559eee2e4b.tar.gz
Capture /var/log/apache2. Capture the versions of relevant packages.
Fixes #227 Signed-off-by: Raphael Badin <raphael.badin@canonical.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
-rw-r--r--sos/plugins/maas.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/sos/plugins/maas.py b/sos/plugins/maas.py
index 2fd6be35..2d6c6499 100644
--- a/sos/plugins/maas.py
+++ b/sos/plugins/maas.py
@@ -17,15 +17,19 @@
from sos.plugins import Plugin, UbuntuPlugin
class Maas(Plugin, UbuntuPlugin):
- """ MAAS Plugin
+ """MAAS Plugin
"""
plugin_name = 'maas'
def setup(self):
- self.add_copy_specs(["/etc/squid-deb-proxy",
- "/etc/maas",
- "/var/lib/maas/dhcp*",
- "/var/log/maas*"])
+ self.add_copy_specs([
+ "/etc/squid-deb-proxy",
+ "/etc/maas",
+ "/var/lib/maas/dhcp*",
+ "/var/log/apache2*",
+ "/var/log/maas*",
+ ])
+ self.add_cmd_output("apt-cache policy maas-*")
+ self.add_cmd_output("apt-cache policy python-django-*")
self.add_cmd_output("maas dumpdata")
-