Merge pull request #30470 from whiteinge/match_dict

Add example of the match_dict format to accept_dict wheel function
This commit is contained in:
Mike Place 2016-01-20 09:26:16 -07:00
commit c611541916

View file

@ -44,6 +44,19 @@ def accept(match):
def accept_dict(match):
'''
Accept keys based on a dict of keys
Example to move a list of keys from the `minions_pre` (pending) directory
to the `minions` (accepted) directory:
.. code-block:: python
{
'minions_pre': [
'jerry',
'stuart',
'bob',
],
}
'''
skey = salt.key.Key(__opts__)
return skey.accept(match_dict=match)