summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-11-23 15:39:34 -0600
committerLuke Kanies <luke@madstop.com>2007-11-23 15:39:34 -0600
commit1cb40eca62ad9d3731524ac0b6272d41f8982e99 (patch)
treeec5575dd94f33928c3290d48ef141ace7cef6a50 /lib
parenteee9f5e3260a1b053333f3ab88e95241ef710d00 (diff)
downloadpuppet-1cb40eca62ad9d3731524ac0b6272d41f8982e99.tar.gz
puppet-1cb40eca62ad9d3731524ac0b6272d41f8982e99.tar.xz
puppet-1cb40eca62ad9d3731524ac0b6272d41f8982e99.zip
Obviating targets in interfaces; they now just generate a warning.
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/type/interface.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/type/interface.rb b/lib/puppet/type/interface.rb
index a077f55f3..2f6c28ad3 100644
--- a/lib/puppet/type/interface.rb
+++ b/lib/puppet/type/interface.rb
@@ -52,8 +52,9 @@ Puppet::Type.newtype(:interface) do
end
newparam(:target) do
+ include Puppet::Util::Warnings
desc "The path to the file this resource creates."
- defaultto { @resource.provider.file_path }
+ munge { |value| warnonce "Interface targets are deprecated and no longer have any function" }
end
end