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
Document source_hash
for salt.states.archive
#11496
Comments
https://github.com/saltstack/salt/blob/develop/salt/states/archive.py#L108 It does a file.managed on the thing to grab the file, https://github.com/saltstack/salt/blob/develop/salt/states/file.py#L621 Here is the documentation of where source_hash is used http://docs.saltstack.com/ref/modules/all/salt.modules.file.html#salt.modules.file.extract_hash It is just used for verifying the file that is downloading |
Thanks for looking that up. Should still be documented though! |
Agreed, we should get it documented! |
I am against documenting it in archive, I would document it better in the file.managed module, and then reference it in the states/archive.py |
A reference would work as well as long as it's described how it's used in this particular case (i thought that it checked the hash of the previously downloaded directory to make sure that it was intact). |
I referenced the source_hash documentation in file.managed as well. This is for saltstack#11496
Maybe we close this now that there's a comment? If someone doesn't like the comment, that could be a new issue with a more specific title. |
Agreed! Thanks! |
salt.states.archive
source_hash
is not documented today, only listed in the example. What does it do? Is it only for checking that the downloaded file is what was requested?The text was updated successfully, but these errors were encountered: