mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #16670 from felskrone/extend_wheel_key
Extend wheel.key with match_dicts
This commit is contained in:
commit
6486772151
@ -40,6 +40,14 @@ def accept(match):
|
||||
return skey.accept(match)
|
||||
|
||||
|
||||
def accept_dict(match):
|
||||
'''
|
||||
Accept keys based on a dict of keys
|
||||
'''
|
||||
skey = salt.key.Key(__opts__)
|
||||
return skey.accept(match_dict=match)
|
||||
|
||||
|
||||
def delete(match):
|
||||
'''
|
||||
Delete keys based on a glob match
|
||||
@ -48,14 +56,30 @@ def delete(match):
|
||||
return skey.delete_key(match)
|
||||
|
||||
|
||||
def delete_dict(match):
|
||||
'''
|
||||
Delete keys based on a dict of keys
|
||||
'''
|
||||
skey = salt.key.Key(__opts__)
|
||||
return skey.delete_key(match_dict=match)
|
||||
|
||||
|
||||
def reject(match):
|
||||
'''
|
||||
Delete keys based on a glob match
|
||||
Reject keys based on a glob match
|
||||
'''
|
||||
skey = salt.key.Key(__opts__)
|
||||
return skey.reject(match)
|
||||
|
||||
|
||||
def reject_dict(match):
|
||||
'''
|
||||
Reject keys based on a dict of keys
|
||||
'''
|
||||
skey = salt.key.Key(__opts__)
|
||||
return skey.reject(match_dict=match)
|
||||
|
||||
|
||||
def key_str(match):
|
||||
'''
|
||||
Return the key strings
|
||||
|
Loading…
Reference in New Issue
Block a user