diff options
Diffstat (limited to 'examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb')
-rw-r--r-- | examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb | 6 |
1 files changed, 3 insertions, 3 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 9f732b5bc..9dfa3f54c 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 @@ -30,7 +30,7 @@ # See: http://reductivelabs.com/trac/puppet/wiki/WritingYourOwnFunctions 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(",") - end + 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(",") + end end |