On Mar 30, 2012, at 2:05 PM, Trevor Vaughan wrote:

> I am able to access the various parameter values in insync? etc...,
> using resource[:value]. However, in munge, all references to the
> property values are coming back empty.
> 
> Something like:
> 
> newparam(:bar) do ... end
> 
> newproperty(:foo) do
>  def insync?(is)
>    debug(resource[:bar]) <-- works
>    ....
>  end
> 
>  munge do |value|
>    value = "#{value} #{resource[:bar]}" <--- empty
>  end
> end

I think that you can do that, as long as the parameter whose value you're using 
is defined first, but it might also be that all non-namevar parameters are 
always defined after properties.  If it's not working, then, um, no? :)

-- 
Luke Kanies | http://about.me/lak | http://puppetlabs.com/ | +1-615-594-8199

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to