It looks like you are stumbling over a Ruby syntax ambiguity.  The fragment 
"{}" can be either an empty hash or an empty block.  Because the 
'defaultto' method can accept a block, Ruby resolves the ambiguity in favor 
of that interpretation.  I think it will work better (and also be clearer) 
if you instead write

defaultto Hash.new



John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to