voxpupuli / puppet-wget

A puppet recipe for wget, a useful tool to download arbitary files from the web
Apache License 2.0
41 stars 114 forks source link

No clear error message when destination is a directory #65

Open ggeldenhuis opened 8 years ago

ggeldenhuis commented 8 years ago

If you specify directory and not a specific file for the destination then the resource declaration for wget::fetch silently fails. My expectation was that it would save the file to a directory if I specify a directory and save it to a filename if I specify a filename. Also having an error message if that is not the expected behaviour would be great.

Vincent-- commented 8 years ago

See https://github.com/maestrodev/puppet-wget/commit/c40bfa3e5f9d41facdc0582746dcbd7977f6f0e9 Not released yet, but if you use the last version from git, that should work ;-)