aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/mysql.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sos/plugins/mysql.py b/sos/plugins/mysql.py
index edab6d01..dd899a36 100644
--- a/sos/plugins/mysql.py
+++ b/sos/plugins/mysql.py
@@ -45,6 +45,9 @@ class Mysql(Plugin):
if self.get_option("dbdump"):
dbuser = self.get_option("dbuser")
dbpass = self.get_option("dbpass")
+ if isinstance(dbuser, bool) or isinstance(dbpass, bool):
+ # sosreport -a
+ return
if 'MYSQL_PWD' in os.environ:
dbpass = os.environ['MYSQL_PWD']
if not dbpass or dbpass is False: