Fix OS examples annotated by Yitao
This commit is contained in:
@@ -9,8 +9,9 @@ def get_vm_command_line(env, config: Dict[str, str]):
|
||||
vm_ip = env.vm_ip
|
||||
port = 5000
|
||||
command = config["command"]
|
||||
shell = config.get("shell", False)
|
||||
|
||||
response = requests.post(f"http://{vm_ip}:{port}/execute", json={"command": command})
|
||||
response = requests.post(f"http://{vm_ip}:{port}/execute", json={"command": command, "shell": shell})
|
||||
|
||||
if response.status_code == 200:
|
||||
return response.json()["output"]
|
||||
|
||||
Reference in New Issue
Block a user