summaryrefslogtreecommitdiff
path: root/lib/puppet/functions
diff options
context:
space:
mode:
authorHelen Campbell <helen@puppetlabs.com>2016-08-23 15:02:39 +0100
committerHelen Campbell <helen@puppetlabs.com>2016-09-05 17:43:56 +0100
commit6c6c6d8e3448e3072d590a0782237486e46bc88d (patch)
treeb65308e8b83806063cbd7f20507c57599f0efa8c /lib/puppet/functions
parent0acff935f8b12938f0a21769a8959a8ba983e60d (diff)
Deprecation function to be mutable in all cases
Diffstat (limited to 'lib/puppet/functions')
-rw-r--r--lib/puppet/functions/deprecation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/functions/deprecation.rb b/lib/puppet/functions/deprecation.rb
index 3b84ae5..6b7b977 100644
--- a/lib/puppet/functions/deprecation.rb
+++ b/lib/puppet/functions/deprecation.rb
@@ -15,7 +15,7 @@ Puppet::Functions.create_function(:deprecation) do
when :error
fail("deprecation. #{key}. #{message}")
else
- Puppet.warn_once('deprecation', key, message)
+ Puppet.deprecation_warning(message, key)
end
end
end