mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -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}"
|
"[!] [#{pool}] '#{vm}' marked as 'failed' after #{timeout} minutes with error: #{open_socket_error}"
|
||||||
elsif timing_out_soon
|
elsif timing_out_soon
|
||||||
time_remaining = timeout - timeout_notification
|
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
|
else
|
||||||
"[!] [#{pool}] '#{vm}' This error is wholly unexpected"
|
"[!] [#{pool}] '#{vm}' This error is wholly unexpected"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue