Add example of the match_dict format to accept_dict wheel function

This commit is contained in:
Seth House 2016-01-19 19:17:51 -07:00
parent d70e6b312a
commit 5034e13f5d

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)