From 9501700bfbcf181f0010ef1830d1485406f8aa2f Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Tue, 28 Mar 2017 15:48:36 +0100 Subject: [grafana] convert add_copy_spec_limit -> add_copy_spec Signed-off-by: Bryn M. Reeves --- sos/plugins/grafana.py | 8 +++++--- 1 file 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", -- cgit