1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 03:54:15 +00:00

Fix process call for consolecallback

This commit is contained in:
Gaëtan Ferez 2022-07-17 13:37:21 +02:00
parent 65dce10ce1
commit 9bf3b7e88f

View file

@ -171,7 +171,7 @@ def connect(sid, environ):
(instance, conn) = get_connection_infos(token)
uuid = conn.get_uuid()
uri = conn.wvm.getURI()
subprocess.run(["consolecallback", uri, uuid])
subprocess.run(["/srv/webvirtcloud/venv/bin/python3", "/srv/webvirtcloud/venv/bin/consolecallback", uri, uuid])
else:
# this is the parent process fork.
sio.start_background_task(target=read_and_forward_pty_output)