summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2011-02-22 16:51:39 -0800
committerJesse Wolfe <jes5199@gmail.com>2011-02-23 13:26:13 -0800
commite3dfe41ce7da108fc345e58c7df8c1576ea951a0 (patch)
treefb31766243fd12703468c1503aa2d76bb7ac7310 /lib/puppet
parent30fa41ddc3796e62a5bd1d0cf5116e14323992a3 (diff)
downloadpuppet-e3dfe41ce7da108fc345e58c7df8c1576ea951a0.tar.gz
puppet-e3dfe41ce7da108fc345e58c7df8c1576ea951a0.tar.xz
puppet-e3dfe41ce7da108fc345e58c7df8c1576ea951a0.zip
(#6418) Recursive files shouldn't be audited
A vestigial codepath was accidentally made live again when 2.6.0's audit parameter was added. This patch removes that code. As it's very difficult to write a meaningful unit test of a negative case, a test will be added to the acceptance test project to confirm before & after behavior for this fix. Reviewed-By: Markus Roberts <markus@puppetlabs.com>
Diffstat (limited to 'lib/puppet')
-rwxr-xr-xlib/puppet/type/file/source.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/puppet/type/file/source.rb b/lib/puppet/type/file/source.rb
index bc464e1c3..6dda7957c 100755
--- a/lib/puppet/type/file/source.rb
+++ b/lib/puppet/type/file/source.rb
@@ -132,10 +132,6 @@ module Puppet
end
end
- def pinparams
- [:mode, :type, :owner, :group, :content]
- end
-
def found?
! (metadata.nil? or metadata.ftype.nil?)
end
@@ -161,16 +157,6 @@ module Puppet
result
end
- # Make sure we're also checking the checksum
- def value=(value)
- super
-
- checks = (pinparams + [:ensure])
- checks.delete(:checksum)
-
- resource[:audit] = checks
- end
-
def local?
found? and uri and (uri.scheme || "file") == "file"
end