I would like to make some decisions on parameters based on other parameters
that may have already been set.
For example,
---
newparam(:param1) do
Puppet.debug "Found drivesperarray parameter"
desc "parameter 1"
validate do |value|
if resource[:otherparam] then
#dosomething
else
resource[:param1] = 0
end
end
Puppet.debug "Parameter 1 is: #{@resource[:param1]}"
end
---
But I keep getting messages like "undefined method `[]' for nil:NilClass"
Anyone have experience with this? I've tried searching around for example
without much luck...
Thanks!
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/GvvMAT2llvMJ.
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-users?hl=en.