old_contents: import os
  
  def import_service(service_name):
      services = os.getenv('SERVICES', None)
      
      if services is not None:
          services = [s.strip() for s in services.split(',')]
          valid_services = [service.replace(service_name, '').split('.')[1] for service in services if service.startswith(service_name)]
          if len(valid_services) > 0:
              return valid_services
          return None
      return None
  
new_contents: import os
  
  def import_service(service_name):
      services = os.getenv('SERVICES', None)
      
      if services is not None:
          services = [s.strip() for s in services.split(',')]
          valid_services = [service.replace(service_name, '').split('.')[1] for service in services if service.startswith(service_name) and len(service.replace(service_name, '')) > 0]
          if len(valid_services) > 0:
              return valid_services
          return None
      return None
subject: fix bug