Skip to content

Commit 2e56e6d

Browse files
authored
expand this variable name to heartbeat seconds (#828)
1 parent d562cae commit 2e56e6d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • lib/ood_core/batch_connect/templates

lib/ood_core/batch_connect/templates/vnc.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class VNC < Template
2424
# @option context [#to_s] :websockify_cmd
2525
# ("${WEBSOCKIFY_CMD:-/opt/websockify/run}") the path to the
2626
# websockify script (assumes you don't modify `:after_script`)
27+
# @option context [#to_s] :websockify_heartbeat_seconds
28+
# ("${WEBSOCKIFY_HEARTBEAT_SECONDS:-30}") the websockify heartbeat
29+
# duration in seconds. (assumes you don't modify `:after_script`)
2730
# @option context [#to_s] :vnc_log ("vnc.log") path to vnc server log
2831
# file (assumes you don't modify `:before_script` or `:after_script`)
2932
# @option context [#to_s] :vnc_passwd ("vnc.passwd") path to the file
@@ -130,7 +133,7 @@ def run_script
130133
# successful connections so that the password can be reset
131134
def after_script
132135
websockify_cmd = context.fetch(:websockify_cmd, "${WEBSOCKIFY_CMD:-/opt/websockify/run}").to_s
133-
websockify_hb = context.fetch(:websockify_hb, "${WEBSOCKIFY_HB:-30}").to_s
136+
websockify_hb = context.fetch(:websockify_heartbeat_seconds, "${WEBSOCKIFY_HEARTBEAT_SECONDS:-30}").to_s
134137

135138
<<-EOT.gsub(/^ {14}/, "")
136139
#{super}

0 commit comments

Comments
 (0)