mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Later versions of MariaDB still support "ALL PRIVILEGES"
This commit is contained in:
parent
d31c902931
commit
cdf52985ec
1 changed files with 2 additions and 1 deletions
|
@ -1867,7 +1867,8 @@ def grant_exists(grant,
|
|||
|
||||
server_version = version(**connection_args)
|
||||
if 'ALL' in grant:
|
||||
if salt.utils.versions.version_cmp(server_version, '8.0') >= 0:
|
||||
if salt.utils.versions.version_cmp(server_version, '8.0') >= 0 and \
|
||||
'MariaDB' not in server_version:
|
||||
grant = ','.join([i for i in __all_privileges__])
|
||||
else:
|
||||
grant = 'ALL PRIVILEGES'
|
||||
|
|
Loading…
Add table
Reference in a new issue