Merge pull request #16670 from felskrone/extend_wheel_key

Extend wheel.key with match_dicts
This commit is contained in:
Seth House 2014-10-19 09:19:45 -06:00
commit 6486772151

View File

@ -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