mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add example of the match_dict format to accept_dict wheel function
This commit is contained in:
parent
d70e6b312a
commit
5034e13f5d
1 changed files with 13 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue