mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-30 04:49:09 -07:00
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:
parent
63c22f6eb0
commit
aab1f30906
4 changed files with 220 additions and 99 deletions
12
test/integration/targets/group/files/gidget.py
Normal file
12
test/integration/targets/group/files/gidget.py
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue