reformat groups

This commit is contained in:
Franzi 2020-02-29 12:30:51 +00:00
parent ebf7f7ada9
commit 33589e9a02
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 28 additions and 18 deletions

View file

@ -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())