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:
commit
13bf151bad
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…
Reference in a new issue