- From: Nick Peirson <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Using data generated in a LWRP
- Date: Thu, 05 Apr 2012 09:32:40 +0100
On 03/04/2012 15:40, Steven Danna wrote:
I think that ultimately my strong opinion about this is to avoid using
the node object to pass state around resources if it is possible.
However, it is occasionally necessary, and in those cases I don't have
a strong opinion about whether to store the information in a node
attribute or the run_state.
I agree. I've ended up using node.run_state to pass state, but this is
implicit and not a convention I've seen documented. Anyone using my the LWRP
I've written will have to understand this before being able to use it to find
the state information.
Andrea's suggestion seemed to provide a good solution, what are everyone's
thoughts on it? If my ruby was stronger I'd try to hack together a pull
request to get the ball rolling but, as it's not, would raising a bug report
be a good starting point?
Cheers
Nick
Archive powered by MHonArc 2.6.16.