1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

Use the same string that was logged to launch the proxy

(cherry picked from commit ab3da924718161be7b65007aeee32feadd8ecfec)
This commit is contained in:
Hector Sanjuan 2011-09-26 20:05:32 +02:00 committed by Tino Vazquez
parent 4a475ae7e5
commit 5b3a0a6662

View File

@ -231,7 +231,7 @@ class SunstoneServer
novnc_cmd = "#{config[:novnc_path]}/utils/wsproxy.py"
novnc_exec = "#{novnc_cmd} #{proxy_port} #{host}:#{vnc_port}"
$stderr.puts("Starting vnc proxy: #{novnc_exec}")
pipe = IO.popen("#{novnc_cmd} #{proxy_port} #{host}:#{vnc_port}")
pipe = IO.popen(novnc_exec)
rescue Exception => e
error = Error.new(e.message)
return [500, error.to_json]