aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Bouchard <louis.bouchard@canonical.com>2016-06-24 17:18:25 +0200
committerBryn M. Reeves <bmr@redhat.com>2016-06-29 14:11:46 +0100
commitc6d0d286a00afd0e5e8bad95249740e00904caa0 (patch)
tree630f98bdb93715c5eaceec702cf37fcf9bed598e
parent5e4991f3d9b3b9356e6a3e1551adf9ce753a03e2 (diff)
downloadsos-c6d0d286a00afd0e5e8bad95249740e00904caa0.tar.gz
[lxd] Use add_copy_spec_limit
sizelimit is only available with add_copy_spec_limit. Replace it. Closes: #843 Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
-rw-r--r--sos/plugins/lxd.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sos/plugins/lxd.py b/sos/plugins/lxd.py
index 5efa4c03..d7f1526a 100644
--- a/sos/plugins/lxd.py
+++ b/sos/plugins/lxd.py
@@ -28,9 +28,8 @@ class LXD(Plugin, UbuntuPlugin):
"/etc/default/lxc-bridge",
])
- self.add_copy_spec([
- "/var/log/lxd*"
- ], sizelimit=self.get_option("log_size"))
+ self.add_copy_spec_limit("/var/log/lxd*",
+ sizelimit=self.get_option("log_size"))
# List of containers available on the machine
self.add_cmd_output([