Skip to content

Commit

Permalink
Merge pull request #40754 from lordcirth/fix-uppercase-checksums
Browse files Browse the repository at this point in the history
file.manage_file: uppercase checksums now work
  • Loading branch information
Mike Place committed Apr 20, 2017
2 parents 623e2eb + c80c792 commit 3b9ebeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions salt/modules/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -4449,6 +4449,9 @@ def manage_file(name,
'changes': {},
'comment': '',
'result': True}
# Ensure that user-provided hash string is lowercase
if source_sum and ('hsum' in source_sum):
source_sum['hsum'] = source_sum['hsum'].lower()

if source and not sfn:
# File is not present, cache it
Expand Down

0 comments on commit 3b9ebeb

Please sign in to comment.