(maint) Fix message for timeout notification.

This commit is contained in:
isaac-hammes 2023-08-31 11:22:58 -07:00
parent 5367ac40f1
commit 04464e305c

View file

@ -144,7 +144,8 @@ module Vmpooler
nonexist_warning = if already_timed_out nonexist_warning = if already_timed_out
"[!] [#{pool}] '#{vm}' marked as 'failed' after #{timeout} minutes with error: #{open_socket_error}" "[!] [#{pool}] '#{vm}' marked as 'failed' after #{timeout} minutes with error: #{open_socket_error}"
elsif timing_out_soon elsif timing_out_soon
"[!] [#{pool}] '#{vm}' no longer exists when attempting to send notification of impending failure" time_remaining = timeout - timeout_notification
"[!] [#{pool}] '#{vm}' will be marked as 'failed' in #{time_remaining} minutes with error: #{open_socket_error}"
else else
"[!] [#{pool}] '#{vm}' This error is wholly unexpected" "[!] [#{pool}] '#{vm}' This error is wholly unexpected"
end end