From 6a13d85a88905415a317cb59142930e68c5b0e3f Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Mon, 23 Jun 2014 12:40:12 +0100 Subject: [mysql] clean up plugin variable use and package lists Signed-off-by: Bryn M. Reeves --- sos/plugins/mysql.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/sos/plugins/mysql.py b/sos/plugins/mysql.py index b168e132..bec55b19 100644 --- a/sos/plugins/mysql.py +++ b/sos/plugins/mysql.py @@ -24,18 +24,22 @@ class Mysql(Plugin): def setup(self): super(Mysql, self).setup() - self.add_copy_specs([self.mysql_cnf, - "/var/log/mysql*"]) + self.add_copy_specs([ + self.mysql_cnf, + "/var/log/mysql*" + ]) class RedHatMysql(Mysql, RedHatPlugin): """MySQL related information for RedHat based distributions """ - packages = ('mysql-server', 'mysql') + packages = ( + 'mysql-server', + 'mysql' + ) def setup(self): - self.mysql_cnf = "/etc/my.cnf" super(RedHatMysql, self).setup() self.add_copy_spec("/etc/ld.so.conf.d/mysql*") @@ -44,10 +48,12 @@ class DebianMysql(Mysql, DebianPlugin, UbuntuPlugin): """MySQL related information for Debian based distributions """ - packages = ('mysql-server', 'mysql-common') + packages = ( + 'mysql-server', + 'mysql-common' + ) def setup(self): - self.mysql_cnf = "/etc/mysql/my.cnf" super(DebianMysql, self).setup() self.add_copy_spec("/etc/mysql/conf.d/mysql*") -- cgit