code: def send_hostinfo(config):
      '''
      Register this host on OpenSubmit test machine.
      '''
      info = all_host_infos()
      logger.debug("Sending host information: " + str(info))
      post_data = [("Config", json.dumps(info)),
                   ("Action", "get_config"),
                   ("UUID", config.get("Server", "uuid")),
                   ("Address", ipaddress()),
                   ("Secret", config.get("Server", "secret"))
                   ]
  
      send_post(config, "/machines/", post_dataf send_hostinfo(config):
      '''
      Register this host on OpenSubmit test machine.
      '''
      info = all_host_infos()
      logger.debug("Sending host information: " + str(info))
      post_data = [("Config", json.dumps(info)),
                   ("Action", "get_config"),
                   ("UUID", config.get("Server", "uuid")),
                   ("Address", ipaddress()),
                   ("Secret", config.get("Server", "secret"))
                   ]
  
      send_post(config, "/machines/", post_data)
docs: Register this host on OpenSubmit test machine.