Skip to content

Commit 565d6ce

Browse files
committed
raise an error if UMG enabled and no primary group rules
1 parent 0c56ca5 commit 565d6ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

user_sync/config/sign_sync.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ def load_primary_group_rules(self, umg):
287287
primary_group_rules = []
288288
if umg:
289289
group_config = self.main_config.get_list_config('primary_group_rules', True)
290+
if group_config is None:
291+
raise AssertionException("'primary_group_rules' is required for UMG sync")
290292
for mapping in group_config.iter_dict_configs():
291293
sign_groups = mapping.get_list('sign_groups')
292294
primary_group = mapping.get_string('primary_group')

0 commit comments

Comments
 (0)