Add changes to raetkey

This commit is contained in:
Mike Place 2017-01-06 15:04:54 -07:00
parent 55ad9d6c6c
commit 2a423ffedd
No known key found for this signature in database
GPG key ID: 9136F4F13705CFD3

View file

@ -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] = {}