Commit Graph

10 Commits

Author SHA1 Message Date
Paul Hinze 108ccf0007 builtin: Refactor resource.Retry to clarify return
Change the `RetryFunc` from a plain `error` return type to a
specialized `RetryError` which must decide whether it is
retryable or not.

Add `RetryableError` / `NonRetryableError` factory functions that
callers are meant to use to build up these errors.

This makes it eminently clear whether or not a given error is
retryable from inside the client code.

Goal here is to _not_ change any behavior, simply reflect the
existing behavior with the new, clearer, API.
2016-03-09 17:37:56 -06:00
stack72 5fbec544d7 Fixing yet more gofmt errors with imports 2015-12-21 09:54:24 +00:00
Nicki Watt f1c2be9772 Make maxRetryTimeout (in seconds) configurable 2015-11-21 12:54:59 +00:00
Brett Mack c8dfecc65f Check where nested structs could possibly be nil before trying to access their data 2015-11-17 11:40:37 +00:00
Brett Mack ecc4ce3657 Converted firewall_rules rule set to a list type. Code tidy 2015-11-16 20:11:05 +00:00
Brett Mack a15c99e5bb Code cleanup to address PR comments 2015-11-10 18:39:58 +00:00
Brett Mack b6abb91b83 Class a resource that is in tfstate but unable to be found on the provider as deleted 2015-11-06 16:39:40 +00:00
Brett Mack 7c09f9653d Changed vmware-govcd dependency to pull from hmrc 2015-11-06 10:19:59 +00:00
Brett Mack 965882bfdf Added protection for api limiting 2015-11-02 16:39:56 +00:00
Brett Mack 8780bd269a Added vCloud Director provider with tests and provider documentation 2015-11-02 13:39:25 +00:00