Fix Impress examples

This commit is contained in:
Timothyxxx
2024-02-07 21:52:21 +08:00
parent 66304b3bab
commit 8dd62178be
9 changed files with 250 additions and 34 deletions

View File

@@ -13,6 +13,8 @@ def get_vm_command_line(env, config: Dict[str, str]):
response = requests.post(f"http://{vm_ip}:{port}/execute", json={"command": command, "shell": shell})
print(response.json())
if response.status_code == 200:
return response.json()["output"]
else: