1
0
Fork 0
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:
Kyle Rames 2013-04-03 10:47:31 -05:00
parent 12390f0813
commit 18473c1db6

View file

@ -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