Skip to content

Commit a63de9e

Browse files
committed
make extended groups and attribute config fields nullable (fixes #348)
1 parent 7a327d8 commit a63de9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

user_sync/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,11 +534,11 @@ def get_rule_options(self):
534534
if extension_config:
535535
after_mapping_hook_text = extension_config.get_string('after_mapping_hook')
536536
options['after_mapping_hook'] = compile(after_mapping_hook_text, '<per-user after-mapping-hook>', 'exec')
537-
options['extended_attributes'] = extension_config.get_list('extended_attributes')
537+
options['extended_attributes'] = extension_config.get_list('extended_attributes', True) or []
538538
# declaration of extended adobe groups: this is needed for two reasons:
539539
# 1. it allows validation of group names, and matching them to adobe groups
540540
# 2. it allows removal of adobe groups not assigned by the hook
541-
for extended_adobe_group in extension_config.get_list('extended_adobe_groups'):
541+
for extended_adobe_group in extension_config.get_list('extended_adobe_groups', True) or []:
542542
group = user_sync.rules.AdobeGroup.create(extended_adobe_group)
543543
if group is None:
544544
message = 'Extension contains illegal extended_adobe_group spec: ' + str(extended_adobe_group)

0 commit comments

Comments
 (0)