Larry Fast
2013-Jul-07 18:56 UTC
[Puppet Users] What are the expected return codes for provider methods param() & param()=
I''m getting unexpected behavior from my provider methods. Here''s the example. parameter p resource[ :p ] = ''hello'' def p() return ''hello'' end def p() return true # Does the return value even matter? end Problem 1: p()= is getting called. Given that the return from p() matches the resource value, shouldn''t it skip p()= ? Problem 2: after p()= runs, none of the follow-on actions take place. Do I need to write extra code so that a require statement in another resource is notified of the change? -- 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 puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.