aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-10-20 14:33:57 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-10-20 14:37:57 +0100
commit6ce502113f550c027424fa477edc091283c32e50 (patch)
tree1d5cac3693c0213f55515e2edbeb8a56e933f73e
parent3d4cf0365d520be81abfe3435fa9a8a56a933961 (diff)
downloadsos-6ce502113f550c027424fa477edc091283c32e50.tar.gz
[mysql] fix pep8 violations
The previous commit had a couple of pep8 errors that were fixed in the working tree but not added to the commit; fix them. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/mysql.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/mysql.py b/sos/plugins/mysql.py
index 1203f5c8..d148472a 100644
--- a/sos/plugins/mysql.py
+++ b/sos/plugins/mysql.py
@@ -15,6 +15,7 @@
from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
import os
+
class Mysql(Plugin):
"""MySQL and MariaDB RDBMS
"""
@@ -44,7 +45,7 @@ class Mysql(Plugin):
if self.get_option("dbdump"):
dbuser = self.get_option("dbuser")
dbpass = self.get_option("dbpass")
- if dbpass == False and 'MYSQL_PWD' in os.environ:
+ if dbpass is False and 'MYSQL_PWD' in os.environ:
dbpass = os.environ['MYSQL_PWD']
else:
# no MySQL password