mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use SHA256 algorithm for yumnotify plugin
This commit is contained in:
parent
7042fc0f75
commit
27001cf4cc
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,8 @@ def _get_checksum():
|
|||
Returns:
|
||||
hexdigest
|
||||
"""
|
||||
digest = hashlib.md5()
|
||||
|
||||
digest = hashlib.sha256()
|
||||
with open(RPM_PATH, "rb") as rpm_db_fh:
|
||||
while True:
|
||||
buff = rpm_db_fh.read(0x1000)
|
||||
|
|
Loading…
Add table
Reference in a new issue