FAQ
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.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedJul 7, '13 at 6:56p
activeJul 7, '13 at 6:56p
posts1
users1
websitepuppetlabs.com

1 user in discussion

Larry Fast: 1 post

People

Translate

site design / logo © 2021 Grokbase