mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[digitalocean] Check to see if we have a digital ocean api key before attempting to delete servers
This commit is contained in:
parent
12390f0813
commit
18473c1db6
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ def fog_test_server_destroy
|
|||
end
|
||||
|
||||
at_exit do
|
||||
unless Fog.mocking?
|
||||
unless Fog.mocking? || Fog.credentials[:digitalocean_api_key].nil?
|
||||
server = service.servers.find { |s| s.name == 'fog-test-server' }
|
||||
if server
|
||||
server.wait_for(120) do
|
||||
|
|
Loading…
Add table
Reference in a new issue