-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file.managed state should not download a file if the checksum did not change #45152
Comments
@terminalmage Thoughts on this one? |
The fix was made after the 2017.7.2 was frozen but before the release of 2017.7.2. Therefore the fix can be expected in 2017.7.3 (and the upcoming Oxygen release). |
@terminalmage Thanks for fixing this bug. Do you have an estimate of when 2017.7.3 will be released? |
Another impact of this issue is that a
returns the following output:
That's 15 minutes just to verify that vagrant is already installed! I thought salt had completely hung but it turns out it's just this issue again. |
2017.7.3 was released earlier this week. |
Description of Issue/Question
When using the file.managed state with a source HTTPS
source
url and a providedsource_hash
I would expect Salt to check the hash of an existing local file before downloading the file from the server. This appears to be a regression of #33831. Today, it's been eating my limited mobile data.Setup
Salt Version: 2017.7.2 (Nitrogen) - in masterless local mode
Ubuntu 16.04 xenial
Steps to Reproduce Issue
file.managed
withsource: https://domain.tld/file.ext
andsource_hash: <hash of file>
salt-call state.highstate -l debug
Requesting URL https://domain.tld/file.ext using GET method
salt-call state.highstate -l debug
Requesting URL https://domain.tld/file.ext using GET method
despite the file already being present and in the correct stateVersions Report
The text was updated successfully, but these errors were encountered: