From bc5343456d5f8ab08075de1fc795c902b7f1f1c5 Mon Sep 17 00:00:00 2001 From: Duy Nguyen Date: Wed, 11 Dec 2013 23:51:53 -0800 Subject: [PATCH] Fixes #88 VNC port does not display properly when already configured --- lib/rvc/modules/vnc.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/rvc/modules/vnc.rb b/lib/rvc/modules/vnc.rb index e37a529..159146b 100644 --- a/lib/rvc/modules/vnc.rb +++ b/lib/rvc/modules/vnc.rb @@ -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 : ""