mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Decode fetch results before making string comparisons
This commit is contained in:
parent
e31e731697
commit
ec8e116f7e
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue