Skip to content

Commit

Permalink
Fixes vmware-archive#88 VNC port does not display properly when alrea…
Browse files Browse the repository at this point in the history
…dy configured
  • Loading branch information
ndd314 committed Dec 12, 2013
1 parent 28ce088 commit bc53434
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rvc/modules/vnc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def view vm, opts
port = extraConfig.find { |x| x.key == 'RemoteDisplay.vnc.port' }
if !port
err "VNC enabled but no port assigned. Use vnc.off to reset config"
else
port = port.value
end
password = extraConfig.find { |x| x.key == 'RemoteDisplay.vnc.password' }
password = password ? password.value : ""
Expand Down

0 comments on commit bc53434

Please sign in to comment.