mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Later versions of MariaDB still support "ALL PRIVILEGES"
This commit is contained in:
parent
d31c902931
commit
cdf52985ec
@ -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…
Reference in New Issue
Block a user