saltstack/salt — pull request #5950 by Mrten (2013-07-04 19:39:42+00:00)
Title: Add test to group state to see if specified gid is free

The errormessage if you specified a GID that was already taken was not really helping for debugging, and the lack of this test caused logentries ('groupadd' was called anyway, which errorred).