aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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