voxpupuli / puppet-staging

⛔️ Deprecated in favor of puppet-archive
https://forge.puppet.com/puppet/archive
Apache License 2.0
51 stars 109 forks source link

Add retries for the file transfer #52

Closed bogdando closed 9 years ago

bogdando commented 9 years ago

W/o this patch Staging::file cannot handle non transient (connectivity) errors. For example, curl or wget command could be used with their --retry keys, but that would work only for transient (4xx/5xx) errors and would fail when the connection was refused.

The solution is to add retries for the file transfer when non transient connection errors exist

Closes-bug: #MODULES-1651

Signed-off-by: Bogdan Dobrelya bdobrelia@mirantis.com