Skip to content

Commit

Permalink
Merge pull request #624 from puppetlabs/fix_timeout_notification_message
Browse files Browse the repository at this point in the history
(maint) Fix message for timeout notification.
  • Loading branch information
isaac-hammes authored Aug 31, 2023
2 parents 5367ac4 + 04464e3 commit 0b419ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/vmpooler/pool_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b419ee

Please sign in to comment.