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

Make curl error on 404 #7

Closed hunner closed 11 years ago

hunner commented 11 years ago

Normally a webserver will return an html document when a 404 is encountered. By default curl will download this html and return 0. This pull request causes curl to return 22 instead, thus making the staging::file resource fail on 404.

nanliu commented 11 years ago

Thanks for the update.