saltstack/salt — pull request #13147 by basepi (2014-05-30 22:32:36+00:00)
Title: Don't try to set brew cmd user if we're already the correct user

If we define a user for this command, we will try to call os.setgroups which requires privileges, which breaks brew use if you're using an unprivileged user who is also the brew user. If we're already running salt as the correct user, just don't try to set the user at all for the brew command.

Fixes #13097