Merge pull request #624 from puppetlabs/fix_timeout_notification_message

(maint) Fix message for timeout notification.
This commit is contained in:
isaac-hammes 2023-08-31 11:41:03 -07:00 committed by GitHub
commit 0b419ee8cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,7 +144,8 @@ module Vmpooler
nonexist_warning = if already_timed_out
"[!] [#{pool}] '#{vm}' marked as 'failed' after #{timeout} minutes with error: #{open_socket_error}"
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
"[!] [#{pool}] '#{vm}' This error is wholly unexpected"
end