If the minion keypair does not exist, generate it

Catches a bug where salt-call doe snot gen the key
This commit is contained in:
Thomas S Hatch 2014-09-29 10:35:18 -06:00
parent 47090b472b
commit e33adfd2b6

View File

@ -305,6 +305,8 @@ class Auth(object):
self.mpub = 'monitor_master.pub'
else:
self.mpub = 'minion_master.pub'
if not os.path.isfile(self.pub_path):
self.get_keys()
def get_keys(self):
'''