mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Removing unnecessary code.
This commit is contained in:
parent
8b542e1745
commit
bb024b9115
1 changed files with 1 additions and 3 deletions
|
@ -35,7 +35,6 @@ Module to provide MySQL compatibility to salt.
|
|||
|
||||
# Import python libs
|
||||
from __future__ import absolute_import, print_function, unicode_literals
|
||||
import binascii
|
||||
import hashlib
|
||||
import time
|
||||
import logging
|
||||
|
@ -205,8 +204,7 @@ def __virtual__():
|
|||
|
||||
|
||||
def __mysql_hash_password(password):
|
||||
_password = hashlib.sha1(password).hexdigest()
|
||||
_password = binascii.unhexlify(_password)
|
||||
_password = hashlib.sha1(password).digest()
|
||||
_password = '*{0}'.format(hashlib.sha1(_password).hexdigest().upper())
|
||||
return _password
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue