mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
log info line when file in s3 changes
This commit is contained in:
parent
2b028dc565
commit
008a207219
1 changed files with 2 additions and 0 deletions
|
@ -721,6 +721,8 @@ def _get_file_from_s3(metadata, saltenv, bucket_name, path, cached_file_path):
|
|||
# hashes match we have a cache hit
|
||||
if cached_md5 == file_md5:
|
||||
return
|
||||
else:
|
||||
log.info(f"found different hash for file {path}, updating...")
|
||||
else:
|
||||
cached_file_stat = os.stat(cached_file_path)
|
||||
cached_file_size = cached_file_stat.st_size
|
||||
|
|
Loading…
Add table
Reference in a new issue