1
commit 1b0e812ad9e33b3cc148fac30a28490f60f40c63
2
Author: Chris Boot <crb@tiger-computing.co.uk>
3
Date: Thu Mar 14 17:56:39 2013 +0000
5
Send the :links option to the file server
7
Previously, the server was never asked to follow links when 'links =>
8
follow' was used, so the server always provided the metadata for the
9
link itself. With this patch, the server correctly follows the link
10
server-side and the client can apply the catalog correctly.
12
--- a/lib/puppet/type/file/source.rb
13
+++ b/lib/puppet/type/file/source.rb
15
return @content if @content
16
raise Puppet::DevError, "No source for content was stored with the metadata" unless metadata.source
18
- unless tmp = Puppet::FileServing::Content.indirection.find(metadata.source)
19
+ unless tmp = Puppet::FileServing::Content.indirection.find(metadata.source, :links => resource[:links])
20
fail "Could not find any content at %s" % metadata.source
22
@content = tmp.content
24
return nil unless value
25
value.each do |source|
27
- if data = Puppet::FileServing::Metadata.indirection.find(source)
28
+ if data = Puppet::FileServing::Metadata.indirection.find(source, :links => resource[:links])
30
@metadata.source = source