![]() 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. |
||
---|---|---|
.. | ||
bins | ||
providers | ||
provisioners |