terraform/builtin/providers
Emil Hessman c738bf0477 builtin/providers/aws: remove unreachable code and skip unnecessary remote call
When DeleteInternetGateway is successful it returns a nil error value.
However, for a nil error value, the RetryFunc returns an error yielding a
unnecessary second call to DeleteInternetGateway in the retry logic.

The logic works because DeleteInternetGateway eventually returns an ec2.Error
with error code InvalidInternetGatewayID.NotFound since the internet gateway
has been deleted in the previous call. The return value of nil breaks the
retry logic and the deletion is deemed successful.

Fix the unnecessary second call to DeleteInternetGateway by short circuiting
with a nil error value when deletion of the internet gateway is successful on
the first try.

Add an acceptance test for internet gateway deletion and remove unreachable
code while here.
2015-01-03 21:56:44 +01:00
..
atlas builtin/providers/atlas: vet fix 2014-12-17 12:28:28 +01:00
aws builtin/providers/aws: remove unreachable code and skip unnecessary remote call 2015-01-03 21:56:44 +01:00
cloudflare Removing obsolete struct tags 2014-11-17 18:57:41 +01:00
cloudstack Making things consistent throughout the provider 2014-12-25 22:58:17 +01:00
consul Making all function names consistent 2014-12-15 15:26:17 +01:00
digitalocean Making all function names consistent 2014-12-15 15:26:17 +01:00
dnsimple Removing obsolete struct tags 2014-11-17 18:58:41 +01:00
google Fixing the acc tests 2014-11-20 14:30:02 +01:00
heroku builtin/providers/heroku: vet fix 2014-12-17 12:58:12 +01:00
mailgun builtin/providers/mailgun: vet fix 2014-12-17 12:59:07 +01:00
null providers/null: null provider 2014-10-04 16:42:43 -07:00