Fixing lint.

This commit is contained in:
Gareth J. Greenaway 2018-10-05 22:27:52 -07:00
parent ac7da89432
commit dd96c130fb
No known key found for this signature in database
GPG key ID: 10B62F8A7CAD7A41
2 changed files with 1 additions and 3 deletions

View file

@ -35,7 +35,6 @@ Module to provide MySQL compatibility to salt.
# Import python libs
from __future__ import absolute_import, print_function, unicode_literals
import hashlib
import time
import logging
import re
@ -1238,7 +1237,7 @@ def user_exists(user,
qry += ' AND ' + password_column + ' = \'\''
elif password:
if salt.utils.versions.version_cmp(server_version, '8.0.11') >= 0:
run_verify = True
run_verify = True
else:
_password = password
qry += ' AND ' + password_column + ' = PASSWORD(%(password)s)'

View file

@ -85,7 +85,6 @@ class MySQLTestCase(TestCase, LoaderModuleMockMixin):
ret = mysql.user_create('testuser')
self.assertEqual(False, ret)
def test_user_create(self):
'''
Test the creation of a MySQL user in mysql exec module