mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
The hash extension should be upper cased
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
b59884b231
commit
07ee50d791
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ def generate_hashes(ctx: Context, files: list[pathlib.Path]):
|
|||
if size == 0:
|
||||
break # EOF
|
||||
digest.update(view[:size])
|
||||
digest_file_path = fpath.parent / f"{fpath.name}.{hash_name}"
|
||||
digest_file_path = fpath.parent / f"{fpath.name}.{hash_name.upper()}"
|
||||
hexdigest = digest.hexdigest()
|
||||
ctx.info(f" * Writing {digest_file_path} ...")
|
||||
digest_file_path.write_text(digest.hexdigest())
|
||||
|
|
Loading…
Add table
Reference in a new issue