Update 2016.3.5 release notes with source_hash_name explanation

This commit is contained in:
Erik Johnson 2016-11-06 11:53:41 -06:00
parent f4426c2233
commit c08038d9ea
2 changed files with 17 additions and 1 deletions

View File

@ -4,3 +4,19 @@ Salt 2016.3.5 Release Notes
Version 2016.3.5 is a bugfix release for :doc:`2016.3.0
</topics/releases/2016.3.0>`.
Improved Checksum Handling in :py:func:`file.managed <salt.states.file.managed>`, :py:func:`archive.extracted <salt.states.archive.extracted>` States
-----------------------------------------------------------------------------------------------------------------------------------------------------
When the ``source_hash`` argument for these states refers to a file containing
checksums, Salt now looks for checksums matching the name of the source URI, as
well as the file being managed. Prior releases only looked for checksums
matching the filename being managed. Additionally, a new argument
(``source_hash_name``) has been added, which allows the user to disambiguate
ambiguous matches when more than one matching checksum is found in the
``source_hash`` file.
A more detailed explanation of this functionality can be found in the
:py:func:`file.managed <salt.states.file.managed>` documentation, in the
section for the new ``source_hash_name`` argument.

View File

@ -1227,7 +1227,7 @@ def managed(name,
source_hash_name
When ``source_hash`` refers to a hash file, Salt will try to find the
correct hash by matching the filename associated with that hash. By
correct hash by matching the filename/URI associated with that hash. By
default, Salt will look for the filename being managed. When managing a
file at path ``/tmp/foo.txt``, then the following line in a hash file
would match: