Parent Directory | Revision Log
Rename mga-common module to mga_common. New puppet version doesn't like modules with a - in their name.
1 | module Puppet::Parser::Functions |
2 | newfunction(:hash_merge, :type => :rvalue) do |args| |
3 | unless args[0].is_a?(Hash) and args[1].is_a?(Hash) |
4 | Puppet.warning "hash_merge takes two arguments" |
5 | nil |
6 | else |
7 | print "hash_merge\n" |
8 | args[0].merge(args[1]) |
9 | end |
10 | end |
11 | end |
ViewVC Help | |
Powered by ViewVC 1.1.30 |