mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 12:22:38 +09:00
noVNC is smart about python2
This commit is contained in:
1 parent
d9d5811b7d
commit
bd9f9f6d42
1 file changed
+4
-1
@@ -148,7 +148,10 @@ class OpenNebulaVNC
|
||||
proxy_options << " -6"
|
||||
end
|
||||
|
||||
cmd ="python #{@proxy_path} #{proxy_options} #{@proxy_port}"
|
||||
system("which python2 >/dev/null 2>&1")
|
||||
python = $?.success? ? "python2" : "python"
|
||||
|
||||
cmd ="#{python} #{@proxy_path} #{proxy_options} #{@proxy_port}"
|
||||
|
||||
begin
|
||||
@logger.info { "Starting VNC proxy: #{cmd}" }
|
||||
|
||||
Reference in new issue
Block a user