Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expand this variable name to heartbeat seconds #828

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/ood_core/batch_connect/templates/vnc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand Down
Loading