Remove the .pub from the public keys in the minions dir

This commit is contained in:
Thomas S Hatch 2011-03-07 13:54:33 -07:00
parent a4ca26b5d5
commit 836bed4b62

View file

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