diff options
author | Michael Kerrin <michael.kerrin@hp.com> | 2015-01-14 12:40:01 +0000 |
---|---|---|
committer | Adam Stokes <adam.stokes@ubuntu.com> | 2015-02-10 11:10:51 -0500 |
commit | ae50dc44b099af293475c35fc79666f431ae42c2 (patch) | |
tree | acc7ef36ecf5a17cabd94a737102e71acde26a49 | |
parent | 5d1f3bb8b1f40372f70eb3421295b22082cb6c1d (diff) | |
download | sos-ae50dc44b099af293475c35fc79666f431ae42c2.tar.gz |
[openstack_swift] capture all swift logs
The swift wasn't doing this previously.
Fixes #460
Signed-off-by: Michael Kerrin <michael.kerrin@hp.com>
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
-rw-r--r-- | sos/plugins/openstack_swift.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sos/plugins/openstack_swift.py b/sos/plugins/openstack_swift.py index 81727e0e..588fcd09 100644 --- a/sos/plugins/openstack_swift.py +++ b/sos/plugins/openstack_swift.py @@ -28,7 +28,9 @@ class OpenStackSwift(Plugin): option_list = [("log", "gathers openstack-swift logs", "slow", False)] def setup(self): - # Swift + if self.get_option("log"): + self.add_copy_spec("/var/log/swift/") + self.add_copy_spec("/etc/swift/") |