group - fix explicit git scenario (#52769)

* group - fix explicit git scenario

* Use str for simplicity and remove changelog

* dynamically get gid and remove Jinja2 check
This commit is contained in:
Jordan Borean 2019-02-22 12:40:42 +10:00 committed by GitHub
parent 63c22f6eb0
commit aab1f30906
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 220 additions and 99 deletions

View file

@ -0,0 +1,12 @@
#!/usr/bin/env python
import grp
gids = [g.gr_gid for g in grp.getgrall()]
i = 0
while True:
if i not in gids:
print(i)
break
i += 1