summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-03-10 00:32:36 -0500
committerLuke Kanies <luke@madstop.com>2009-03-10 00:32:36 -0500
commit90afd48c39bc7bbb8e7afa81a49d2f814a787565 (patch)
treefc72b168751f90c0606b9daae7a1994d7bc17497 /lib
parent858480b04d84e56aa483c80642dd0512af4fd025 (diff)
downloadpuppet-90afd48c39bc7bbb8e7afa81a49d2f814a787565.tar.gz
puppet-90afd48c39bc7bbb8e7afa81a49d2f814a787565.tar.xz
puppet-90afd48c39bc7bbb8e7afa81a49d2f814a787565.zip
Not passing file sources on to child files
This was sometimes causing files to get converted to directories. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/type/file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/type/file.rb b/lib/puppet/type/file.rb
index 3be96ff2d..7d37fe865 100644
--- a/lib/puppet/type/file.rb
+++ b/lib/puppet/type/file.rb
@@ -479,7 +479,7 @@ module Puppet
options = @original_parameters.merge(:path => full_path, :implicit => true).reject { |param, value| value.nil? }
# These should never be passed to our children.
- [:parent, :ensure, :recurse, :target, :alias].each do |param|
+ [:parent, :ensure, :recurse, :target, :alias, :source].each do |param|
options.delete(param) if options.include?(param)
end