mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
(RE-15817) Reword fail warning and get error from redis before generating message
This commit is contained in:
parent
cee0317f41
commit
e9598a9f47
1 changed files with 2 additions and 1 deletions
|
|
@ -145,7 +145,8 @@ module Vmpooler
|
|||
"[!] [#{pool}] '#{vm}' marked as 'failed' after #{timeout} minutes with error: #{open_socket_error}"
|
||||
elsif timing_out_soon
|
||||
time_remaining = timeout - timeout_notification
|
||||
"[!] [#{pool}] '#{vm}' will be marked as 'failed' in #{time_remaining} minutes with error: #{open_socket_error}"
|
||||
open_socket_error = redis.hget("vmpooler__vm__#{vm}", 'open_socket_error')
|
||||
"[!] [#{pool}] '#{vm}' impending failure in #{time_remaining} minutes with error: #{open_socket_error}"
|
||||
else
|
||||
"[!] [#{pool}] '#{vm}' This error is wholly unexpected"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue