def _warning_for_deprecated_user_based_rules(rules):
 for rule in rules:
  if [resource for resource in USER_BASED_RESOURCES if (resource in rule[0])]:
   continue
  if ('user_id' in KEY_EXPR.findall(rule[1])):
   LOG.warning(_LW("The user_id attribute isn't supported in the rule '%s'. All the user_id based policy enforcement will be removed in the future."), rule[0])

def _warning_for_deprecated_user_based_rules ( rules ) : for rule in rules : if [ resource for resource in USER_BASED_RESOURCES if ( resource in rule [ 0 ] ) ] : continue if ( 'user_id' in KEY_EXPR . findall ( rule [ 1 ] ) ) : LOG . warning ( _LW ( "The user_id attribute isn't supported in the rule '%s'. All the user_id based policy enforcement will be removed in the future." ) , rule [ 0 ] )
warning user based policy enforcement used in the rule but the rule doesnt support it .