Revision bd9f9f6d src/sunstone/OpenNebulaVNC.rb
src/sunstone/OpenNebulaVNC.rb | ||
---|---|---|
148 | 148 |
proxy_options << " -6" |
149 | 149 |
end |
150 | 150 |
|
151 |
cmd ="python #{@proxy_path} #{proxy_options} #{@proxy_port}" |
|
151 |
system("which python2 >/dev/null 2>&1") |
|
152 |
python = $?.success? ? "python2" : "python" |
|
153 |
|
|
154 |
cmd ="#{python} #{@proxy_path} #{proxy_options} #{@proxy_port}" |
|
152 | 155 |
|
153 | 156 |
begin |
154 | 157 |
@logger.info { "Starting VNC proxy: #{cmd}" } |
Also available in: Unified diff