code: def _handle_dist_server(ds_type, repos_array):
      
      if ds_type not in ("JDS", "CDP"):
          raise ValueError("Must be JDS or CDP")
      prompt = "Does your JSS use a %s? (Y|N): " % ds_type
      result = loop_until_valid_response(prompt)
  
      if result:
          repo_dict = ElementTree.SubElement(repos_array, "dict")
          repo_name_key = ElementTree.SubElement(repo_dict, "key")
          repo_name_key.text = "type"
          repo_name_string = ElementTree.SubElement(repo_dict, "string")
          repo_name_string.text = ds_type
docs: Ask user for whether to use a type of dist server.