1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-04-01 06:50:25 +03:00

M #-: fallback to python3 (#3)

This commit is contained in:
Jan Orel 2020-06-11 16:11:12 +02:00 committed by Ruben S. Montero
parent b834fd62d1
commit dbadd68833
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -152,7 +152,10 @@ class OpenNebulaVNC
proxy_options << " -6"
end
cmd ="python #{@proxy_path} #{proxy_options} #{@proxy_port}"
python = 'python3' if system("python3 -c True")
python = 'python' if system("python -c True")
cmd ="#{python} #{@proxy_path} #{proxy_options} #{@proxy_port}"
begin
@logger.info { "Starting VNC proxy: #{cmd}" }