original_docstring:  Waits for the created server to activate for "wait_time". 
docstring: Waits for the created server to activate for "wait_time".
docstring_tokens: Waits for the created server to activate for " wait_time " .
code: def wait_server_to_active(url, auth_token, wait=20, timeout=600):
      """ Waits for the created server to activate for "wait_time". """
      time.sleep(wait)
  
      resp = _http_requests_json(url, {"X-Auth-Token": auth_token})
      status = resp["server"]["status"]
      print("Server status: %s" % status)
  
      if str(status) == "BUILD" and wait < timeout:
          wait += wait/2
          return wait_server_to_active(url, auth_token, wait, timeout)
  
      return resp
code_tokens: def wait_server_to_active ( url , auth_token , wait = 20 , timeout = 600 ) : time . sleep ( wait ) resp = _http_requests_json ( url , { "X-Auth-Token" : auth_token } ) status = resp [ "server" ] [ "status" ] print ( "Server status: %s" % status ) if str ( status ) == "BUILD" and wait < timeout : wait += wait / 2 return wait_server_to_active ( url , auth_token , wait , timeout ) return resp
short_docstring: Waits for the created server to activate for "wait_time".
short_docstring_tokens: Waits for the created server to activate for " wait_time " .
comment: """ Waits for the created server to activate for "wait_time". """