Custom Type & Provider - param not working

1 view
Skip to first unread message

mjke...@gmail.com

unread,
Jun 23, 2010, 8:35:48 AM6/23/10
to Puppet Users
I have created a custom type and provider. I wanted to go back and
add in a little more functionality so I wanted to give it a new
parameter. So where I declare the type I added

newparam(:recurse) do
newvalues(:true, :false)

defaultto :false
end

No matter what I set the param to in my pp file accessing this param
using @resource[:recurse] it is always nil. I have tried not doing
any value validation and it is still nil. I have tried not putting a
default value and it is still nil.

Is there anything fundamentally wrong with what I am doing that it
should not work?
Reply all
Reply to author
Forward
0 new messages