moving everything into standard api responses
This commit is contained in:
@@ -36,7 +36,7 @@ def register_socketio_handlers(socketio):
|
||||
}, to=request.sid)
|
||||
return
|
||||
|
||||
container_info = container_response.json()
|
||||
container_info = container_response.json()['data']
|
||||
worker_id = container_info["workload_host_id"]
|
||||
|
||||
if worker_id not in connected_workers:
|
||||
@@ -110,7 +110,7 @@ def register_socketio_handlers(socketio):
|
||||
logger.info(f"[{request_id}] Starting log stream for container {container_id}")
|
||||
container_response = requests.get(f"{api_server_url}/workloads/containers/{container_id}")
|
||||
container_response.raise_for_status()
|
||||
container_info = container_response.json()
|
||||
container_info = container_response.json()['data']
|
||||
|
||||
worker_id = container_info["workload_host_id"]
|
||||
if worker_id not in connected_workers:
|
||||
|
||||
@@ -28,7 +28,7 @@ def register_socketio_handlers(socketio):
|
||||
# Lookup container details
|
||||
response = requests.get(f"{api_server_url}/workloads/containers/{container_id}")
|
||||
response.raise_for_status()
|
||||
info = response.json()
|
||||
info = response.json()['data']
|
||||
worker_id = info["workload_host_id"]
|
||||
|
||||
context = {
|
||||
|
||||
Reference in New Issue
Block a user