summaryrefslogtreecommitdiffstats
path: root/examples/modules/sample-module/lib/puppet/parser
diff options
context:
space:
mode:
Diffstat (limited to 'examples/modules/sample-module/lib/puppet/parser')
-rw-r--r--examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb b/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb
index d7ad7d22e..fdeeff1dc 100644
--- a/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb
+++ b/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb
@@ -31,6 +31,6 @@
module Puppet::Parser::Functions
newfunction(:hostname_to_dn, :type => :rvalue, :doc => "Given 'foo.bar.com', return 'dc=foo,dc=bar,dc=com'.") do |args|
- args[0].split(/\./).map do |s| "dc=%s"%[s] end.join(",")
+ args[0].split(/\./).map do |s| "dc=#{s}" end.join(",")
end
end