aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2017-03-28 15:48:36 +0100
committerBryn M. Reeves <bmr@redhat.com>2017-03-28 15:48:36 +0100
commit9501700bfbcf181f0010ef1830d1485406f8aa2f (patch)
tree6a859fc61f84893bc2e767d4647619df8fec2ad4
parent6817aae35c6507ce87a9d4445ee79a54ca12e90e (diff)
downloadsos-9501700bfbcf181f0010ef1830d1485406f8aa2f.tar.gz
[grafana] convert add_copy_spec_limit -> add_copy_spec
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/grafana.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/sos/plugins/grafana.py b/sos/plugins/grafana.py
index 308fd27d..112d7f36 100644
--- a/sos/plugins/grafana.py
+++ b/sos/plugins/grafana.py
@@ -25,10 +25,12 @@ class Grafana(Plugin, RedHatPlugin):
def setup(self):
if self.get_option("all_logs"):
- self.add_copy_spec("/var/log/grafana/*.log")
+ self.add_copy_spec("/var/log/grafana/*.log",
+ sizelimit=self.get_option("log_size"))
else:
- self.add_copy_spec_limit("/var/log/grafana/*.log",
- sizelimit=self.get_option("log_size"))
+ self.add_copy_spec("/var/log/grafana/*.log",
+ sizelimit=self.get_option("log_size"))
+
self.add_cmd_output([
"grafana-cli plugins ls",
"grafana-cli plugins list-remote",