mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add changes to raetkey
This commit is contained in:
parent
55ad9d6c6c
commit
2a423ffedd
1 changed files with 8 additions and 2 deletions
10
salt/key.py
10
salt/key.py
|
@ -1326,10 +1326,13 @@ class RaetKey(Key):
|
|||
self.check_minion_cache()
|
||||
return self.list_keys()
|
||||
|
||||
def finger(self, match):
|
||||
def finger(self, match, hash_type=None):
|
||||
'''
|
||||
Return the fingerprint for a specified key
|
||||
'''
|
||||
if hash_type is None:
|
||||
hash_type = __opts__['hash_type']
|
||||
|
||||
matches = self.name_match(match, True)
|
||||
ret = {}
|
||||
for status, keys in six.iteritems(matches):
|
||||
|
@ -1342,10 +1345,13 @@ class RaetKey(Key):
|
|||
ret[status][key] = self._get_key_finger(path)
|
||||
return ret
|
||||
|
||||
def finger_all(self):
|
||||
def finger_all(self, hash_type=None):
|
||||
'''
|
||||
Return fingerprints for all keys
|
||||
'''
|
||||
if hash_type is None:
|
||||
hash_type = __opts__['hash_type']
|
||||
|
||||
ret = {}
|
||||
for status, keys in six.iteritems(self.list_keys()):
|
||||
ret[status] = {}
|
||||
|
|
Loading…
Add table
Reference in a new issue