mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
aab1f30906
* group - fix explicit git scenario * Use str for simplicity and remove changelog * dynamically get gid and remove Jinja2 check
12 lines
160 B
Python
12 lines
160 B
Python
#!/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
|