mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Allow file.managed to work with uppercase source_hash in test=true mode
Fixes #48230
This commit is contained in:
parent
4c691ac57a
commit
a6abf85621
1 changed files with 5 additions and 0 deletions
|
@ -4484,6 +4484,11 @@ def check_managed_changes(
|
|||
defaults,
|
||||
skip_verify,
|
||||
**kwargs)
|
||||
|
||||
# Ensure that user-provided hash string is lowercase
|
||||
if source_sum and ('hsum' in source_sum):
|
||||
source_sum['hsum'] = source_sum['hsum'].lower()
|
||||
|
||||
if comments:
|
||||
__clean_tmp(sfn)
|
||||
return False, comments
|
||||
|
|
Loading…
Add table
Reference in a new issue