saltstack/salt — pull request #12040 by JustinHead (2014-04-16 15:57:19+00:00)
Title: Use cloud profile to determine key on delete

On a cloud create it is allowed to search the profiles to override the minion id and thus the key file name that is created.

Currently, on delete only the name is checked and if the name differs from the minion id then the key file is not removed.

This merge causes the key file to be derived from the profile as it is during creation so that the key files will be removed correctly.