On Jun 12, 2011, at 8:49 PM, Dan Bode wrote:
> [...]
> my questions follow:
>
> 1. Am I doing something blatantly wrong?
Kind of - you need to make sure that the provider has a mechanism for storing
these values in a way that doesn't result in them being looked up if they're
already present.
> 2. Is self.instances just supposed to set parameters and then rely on calling
> type.retrieve to fill in its properties?
> if this is the case, how am I supposed to set the :name param (or any
> other params it may need)
Resources should never store 'is' values, only 'should' values - the provider
can cache the 'is' values, but not the resource.
Yes, this is confusing, but I don't really know how to make it better.
--
Puritanism: The haunting fear that someone, somewhere, may be happy.
-- H. L. Mencken
---------------------------------------------------------------------
Luke Kanies -|- http://puppetlabs.com -|- http://about.me/lak
--
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.