saltstack/salt — pull request #10672 by dwfreed (2014-02-22 23:31:21+00:00)
Title: Use the existing pubkey for the sign in payload

Rather than making a temp file to save out the public key just to read it back in to give to the master for sign in, we can just read the existing public key file that was just created. I should mention that I have not tested this change, as I do not yet have a salt environment up and running. I have looked through the minion sign in flow, and by this point, the keys have already been created if they didn't exist, so removing the call to salt.get_keys() is perfectly safe. I would highly suggest testing starting up a minion, both a fresh one and one that has been running for a while, to verify that both cases don't run into any issues.