Merge /config into /status and remove /config endpoint
All static configuration fields (version, local_prefix, listen_port, http_port, mode, satellite/satellite_server) are now included directly in the /status JSON response. The /config endpoint is removed.
This commit is contained in:
1 parent
c82827080c
commit
4e6bff7962
4 files changed
+69
-147
No files matched your search
@@ -485,12 +485,6 @@ def get_status(host: str, port: int, timeout: float = 3.0) -> dict:
|
||||
return json.loads(resp.read())
|
||||
|
||||
|
||||
def get_config(host: str, port: int, timeout: float = 3.0) -> dict:
|
||||
url = f"http://{host}:{port}/config"
|
||||
with urlopen(url, timeout=timeout) as resp:
|
||||
return json.loads(resp.read())
|
||||
|
||||
|
||||
def wait_until(predicate, timeout: float = 10.0, interval: float = 0.2,
|
||||
msg: str = "condition not met"):
|
||||
"""Poll predicate() until it returns True or timeout expires."""
|
||||
|
||||
Reference in new issue
Block a user