1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #1728 from rackspace/digitalocean_exit

[digitalocean] Check to see if digitalocean_api_key exists before running exit code
This commit is contained in:
Wesley Beary 2013-04-03 09:43:42 -07:00
commit 13bf151bad

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