mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[rackspace] updating test helper to log errors and not throw exceptions to prevent shindo from halting if an error occurs.
This commit is contained in:
parent
4a9dbf054a
commit
1c5b97b9ed
1 changed files with 6 additions and 2 deletions
|
@ -54,8 +54,12 @@ module Shindo
|
|||
until current_state == state
|
||||
current_state = service.get_server(server_id).body['server']['status']
|
||||
if error_states
|
||||
error_states = Array(error_states)
|
||||
raise "ERROR! Server should have transitioned to '#{state}' not '#{current_state}'" if error_states.include?(current_state)
|
||||
error_states = Array(error_states)
|
||||
if error_states.include?(current_state)
|
||||
Fog::Logger.warning caller
|
||||
Fog::Logger.warning "ERROR! Server should have transitioned to '#{state}' not '#{current_state}'"
|
||||
return
|
||||
end
|
||||
end
|
||||
sleep 10 unless Fog.mocking?
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue