From 4b4fb94b7e158a64cc9e4fd4f8faa210d435af9f Mon Sep 17 00:00:00 2001 From: Jeff Ohrstrom Date: Wed, 6 Mar 2024 10:01:55 -0500 Subject: [PATCH] expand this variable name to heartbeat seconds --- lib/ood_core/batch_connect/templates/vnc.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ood_core/batch_connect/templates/vnc.rb b/lib/ood_core/batch_connect/templates/vnc.rb index 6d271fb3f..fb5029ac5 100644 --- a/lib/ood_core/batch_connect/templates/vnc.rb +++ b/lib/ood_core/batch_connect/templates/vnc.rb @@ -24,6 +24,9 @@ class VNC < Template # @option context [#to_s] :websockify_cmd # ("${WEBSOCKIFY_CMD:-/opt/websockify/run}") the path to the # websockify script (assumes you don't modify `:after_script`) + # @option context [#to_s] :websockify_heartbeat_seconds + # ("${WEBSOCKIFY_HEARTBEAT_SECONDS:-30}") the websockify heartbeat + # duration in seconds. (assumes you don't modify `:after_script`) # @option context [#to_s] :vnc_log ("vnc.log") path to vnc server log # file (assumes you don't modify `:before_script` or `:after_script`) # @option context [#to_s] :vnc_passwd ("vnc.passwd") path to the file @@ -130,7 +133,7 @@ def run_script # successful connections so that the password can be reset def after_script websockify_cmd = context.fetch(:websockify_cmd, "${WEBSOCKIFY_CMD:-/opt/websockify/run}").to_s - websockify_hb = context.fetch(:websockify_hb, "${WEBSOCKIFY_HB:-30}").to_s + websockify_hb = context.fetch(:websockify_heartbeat_seconds, "${WEBSOCKIFY_HEARTBEAT_SECONDS:-30}").to_s <<-EOT.gsub(/^ {14}/, "") #{super}