mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Use configurable hash_type for general Key fingerprinting
This commit is contained in:
parent
f0d931f4d0
commit
785717703b
@ -21,10 +21,8 @@ def finger():
|
||||
|
||||
salt '*' key.finger
|
||||
'''
|
||||
return salt.utils.pem_finger(
|
||||
os.path.join(__opts__['pki_dir'], 'minion.pub'),
|
||||
sum_type=__opts__['hash_type']
|
||||
)
|
||||
return salt.utils.pem_finger(os.path.join(__opts__['pki_dir'], 'minion.pub'),
|
||||
sum_type=__opts__.get('hash_type', 'md5'))
|
||||
|
||||
|
||||
def finger_master():
|
||||
@ -37,7 +35,5 @@ def finger_master():
|
||||
|
||||
salt '*' key.finger_master
|
||||
'''
|
||||
return salt.utils.pem_finger(
|
||||
os.path.join(__opts__['pki_dir'], 'minion_master.pub'),
|
||||
sum_type=__opts__['hash_type']
|
||||
)
|
||||
return salt.utils.pem_finger(os.path.join(__opts__['pki_dir'], 'minion_master.pub'),
|
||||
sum_type=__opts__.get('hash_type', 'md5'))
|
||||
|
Loading…
Reference in New Issue
Block a user