From 04464e305c7b6f71bef48b9b6948edf8fa3f3ab3 Mon Sep 17 00:00:00 2001 From: isaac-hammes Date: Thu, 31 Aug 2023 11:22:58 -0700 Subject: [PATCH] (maint) Fix message for timeout notification. --- lib/vmpooler/pool_manager.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vmpooler/pool_manager.rb b/lib/vmpooler/pool_manager.rb index 128ad605..4f003472 100644 --- a/lib/vmpooler/pool_manager.rb +++ b/lib/vmpooler/pool_manager.rb @@ -144,7 +144,8 @@ def fail_pending_vm(vm, pool, timeout, timeout_notification, redis, exists: true 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