mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Fixed typo
This commit is contained in:
parent
8149e9e193
commit
9745b0adfb
@ -1267,8 +1267,8 @@ def user_exists(user,
|
|||||||
run_verify = False
|
run_verify = False
|
||||||
server_version = salt.utils.data.decode(version(**connection_args))
|
server_version = salt.utils.data.decode(version(**connection_args))
|
||||||
if not server_version:
|
if not server_version:
|
||||||
lasr_err = __context__['mysql.error']
|
last_err = __context__['mysql.error']
|
||||||
err = 'MySQL Error: Unable to fetch current server version. Last error was: "{}"'.format(lasr_err)
|
err = 'MySQL Error: Unable to fetch current server version. Last error was: "{}"'.format(last_err)
|
||||||
log.error(err)
|
log.error(err)
|
||||||
return False
|
return False
|
||||||
compare_version = '10.2.0' if 'MariaDB' in server_version else '8.0.11'
|
compare_version = '10.2.0' if 'MariaDB' in server_version else '8.0.11'
|
||||||
@ -1411,8 +1411,8 @@ def user_create(user,
|
|||||||
'''
|
'''
|
||||||
server_version = salt.utils.data.decode(version(**connection_args))
|
server_version = salt.utils.data.decode(version(**connection_args))
|
||||||
if not server_version:
|
if not server_version:
|
||||||
lasr_err = __context__['mysql.error']
|
last_err = __context__['mysql.error']
|
||||||
err = 'MySQL Error: Unable to fetch current server version. Last error was: "{}"'.format(lasr_err)
|
err = 'MySQL Error: Unable to fetch current server version. Last error was: "{}"'.format(last_err)
|
||||||
log.error(err)
|
log.error(err)
|
||||||
return False
|
return False
|
||||||
compare_version = '10.2.0' if 'MariaDB' in server_version else '8.0.11'
|
compare_version = '10.2.0' if 'MariaDB' in server_version else '8.0.11'
|
||||||
@ -1521,8 +1521,8 @@ def user_chpass(user,
|
|||||||
'''
|
'''
|
||||||
server_version = salt.utils.data.decode(version(**connection_args))
|
server_version = salt.utils.data.decode(version(**connection_args))
|
||||||
if not server_version:
|
if not server_version:
|
||||||
lasr_err = __context__['mysql.error']
|
last_err = __context__['mysql.error']
|
||||||
err = 'MySQL Error: Unable to fetch current server version. Last error was: "{}"'.format(lasr_err)
|
err = 'MySQL Error: Unable to fetch current server version. Last error was: "{}"'.format(last_err)
|
||||||
log.error(err)
|
log.error(err)
|
||||||
return False
|
return False
|
||||||
compare_version = '10.2.0' if 'MariaDB' in server_version else '8.0.11'
|
compare_version = '10.2.0' if 'MariaDB' in server_version else '8.0.11'
|
||||||
@ -1882,8 +1882,8 @@ def grant_exists(grant,
|
|||||||
|
|
||||||
server_version = salt.utils.data.decode(version(**connection_args))
|
server_version = salt.utils.data.decode(version(**connection_args))
|
||||||
if not server_version:
|
if not server_version:
|
||||||
lasr_err = __context__['mysql.error']
|
last_err = __context__['mysql.error']
|
||||||
err = 'MySQL Error: Unable to fetch current server version. Last error was: "{}"'.format(lasr_err)
|
err = 'MySQL Error: Unable to fetch current server version. Last error was: "{}"'.format(last_err)
|
||||||
log.error(err)
|
log.error(err)
|
||||||
return False
|
return False
|
||||||
if 'ALL' in grant:
|
if 'ALL' in grant:
|
||||||
|
Loading…
Reference in New Issue
Block a user