reformat groups
This commit is contained in:
parent
ebf7f7ada9
commit
33589e9a02
2 changed files with 28 additions and 18 deletions
25
groups.py
25
groups.py
|
@ -1,18 +1,7 @@
|
|||
groups = {
|
||||
#'group-1': {
|
||||
# 'bundles': (
|
||||
# 'bundle-1',
|
||||
# ),
|
||||
# 'members': (
|
||||
# 'node-1',
|
||||
# ),
|
||||
# 'subgroups': (
|
||||
# 'group-2',
|
||||
# ),
|
||||
#},
|
||||
'all': {
|
||||
'member_patterns': (
|
||||
r".*",
|
||||
),
|
||||
},
|
||||
}
|
||||
from os.path import join
|
||||
from pathlib import Path
|
||||
|
||||
groups = {}
|
||||
for group in Path(join(repo_path, "groups")).rglob("*.py"):
|
||||
with open(group, 'r') as f:
|
||||
exec(f.read())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue