mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove the .pub from the public keys in the minions dir
This commit is contained in:
parent
a4ca26b5d5
commit
836bed4b62
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ class ReqServer(threading.Thread):
|
|||
# 5. package the return and return it
|
||||
pubfn = os.path.join(self.opts['pki_dir'],
|
||||
'minions',
|
||||
load['hostname'] + '.pub')
|
||||
load['hostname'])
|
||||
if os.path.isfile(pubfn):
|
||||
if not open(pubfn, 'r').read() == load['pub']:
|
||||
# The keys don't authenticate, return a failure
|
||||
|
|
Loading…
Add table
Reference in a new issue