saltstack/salt — pull request #2285 by UtahDave (2012-10-18 21:51:26+00:00)
Title: Check the rejected bucket before accepted bucket

Fixes #2266

Check the rejected minions bucket first. Previously, if
a minion's key was in both accepted and rejected buckets,
only the accepted bucket was checked and auth was approved.

Now the rejected bucket is checked first and will deny auth
regardless if the minion is in the accepted bucket as well.

This does not fix the problem that once a minion is authenticated
it will continue being authenticate until it restarts after it's key
has been moved to the rejected bucket.