diff --git a/salt/modules/mysql.py b/salt/modules/mysql.py index 5d98c7d19774..9aac53640325 100644 --- a/salt/modules/mysql.py +++ b/salt/modules/mysql.py @@ -1778,7 +1778,7 @@ def user_grants(user, return False ret = [] - results = cur.fetchall() + results = salt.utils.data.decode(cur.fetchall()) for grant in results: tmp = grant[0].split(' IDENTIFIED BY')[0] if 'WITH GRANT OPTION' in grant[0] and 'WITH GRANT OPTION' not in tmp: