Skip to content
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

Closed
jacobsvante opened this issue Mar 25, 2014 · 7 comments
Closed

Document source_hash for salt.states.archive #11496

jacobsvante opened this issue Mar 25, 2014 · 7 comments
Labels
Documentation Relates to Salt documentation help-wanted Community help is needed to resolve this
Milestone

Comments

@jacobsvante
Copy link
Contributor

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?

@gtmanfred
Copy link
Contributor

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

@jacobsvante
Copy link
Contributor Author

Thanks for looking that up. Should still be documented though!

@basepi
Copy link
Contributor

basepi commented Mar 25, 2014

Agreed, we should get it documented!

@basepi basepi modified the milestones: Outstanding Bugs, Pending Discussion, Approved for future release Mar 25, 2014
@gtmanfred
Copy link
Contributor

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

@jacobsvante
Copy link
Contributor Author

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).

SeanZicari added a commit to SeanZicari/salt that referenced this issue Apr 14, 2014
I referenced the source_hash documentation in file.managed as well.

This is for saltstack#11496
@SeanZicari
Copy link
Contributor

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.

@basepi
Copy link
Contributor

basepi commented Apr 17, 2014

Agreed! Thanks!

@basepi basepi closed this as completed Apr 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Relates to Salt documentation help-wanted Community help is needed to resolve this
Projects
None yet
Development

No branches or pull requests

4 participants