@@ -127,6 +127,10 @@ def get_directory_connector_configs(self):
127127 directory_config = self .main_config .get_dict_config ('directory_users' , True )
128128 if directory_config != None :
129129 connectors_config = directory_config .get_dict_config ('connectors' , True )
130+ # make sure neither ldap nor csv connectors get reported as unused
131+ if connectors_config :
132+ connectors_config .get_list ('ldap' , True )
133+ connectors_config .get_list ('csv' , True )
130134 return connectors_config
131135
132136 def get_directory_connector_options (self , connector_name ):
@@ -171,8 +175,8 @@ def get_directory_groups(self):
171175 if groups == None :
172176 adobe_groups_by_directory_group [directory_group ] = groups = []
173177
174- adobe_groups_config = item .get_list_config ('adobe_groups' )
175- for adobe_group in adobe_groups_config . iter_values ( types . StringTypes ) :
178+ adobe_groups = item .get_list ('adobe_groups' , True )
179+ for adobe_group in adobe_groups or [] :
176180 group = user_sync .rules .AdobeGroup .create (adobe_group )
177181 if group is None :
178182 validation_message = 'Bad adobe group: "%s" in directory group: "%s"' % (adobe_group , directory_group )
@@ -274,11 +278,11 @@ def get_rule_options(self):
274278 exclude_identity_types = exclude_identity_type_names = []
275279 exclude_users = exclude_users_regexps = []
276280 exclude_groups = exclude_group_names = []
277- umapi_config = self .main_config .get_dict_config ('adobe_users' , True )
278- if umapi_config :
279- exclude_identity_type_names = umapi_config .get_list ('exclude_identity_types' , True ) or []
280- exclude_users_regexps = umapi_config .get_list ('exclude_users' , True ) or []
281- exclude_group_names = umapi_config .get_list ('exclude_groups ' , True ) or []
281+ adobe_config = self .main_config .get_dict_config ('adobe_users' , True )
282+ if adobe_config :
283+ exclude_identity_type_names = adobe_config .get_list ('exclude_identity_types' , True ) or []
284+ exclude_users_regexps = adobe_config .get_list ('exclude_users' , True ) or []
285+ exclude_group_names = adobe_config .get_list ('exclude_adobe_groups ' , True ) or []
282286 for name in exclude_identity_type_names :
283287 message_format = 'Illegal value in exclude_identity_types: %s'
284288 identity_type = user_sync .identity_type .parse_identity_type (name , message_format )
0 commit comments