diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2014-06-23 12:40:12 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2014-06-23 12:40:12 +0100 |
commit | 6a13d85a88905415a317cb59142930e68c5b0e3f (patch) | |
tree | 7c59f28f4f6dfb927351903e5872d530edbcdd15 | |
parent | 772a953a30c75a0f4aa4e0554ab840ea54670d33 (diff) | |
download | sos-6a13d85a88905415a317cb59142930e68c5b0e3f.tar.gz |
[mysql] clean up plugin variable use and package lists
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/mysql.py | 18 |
1 files 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*") |