On Mar 21, 2010, at 9:50 AM, Brice Figureau wrote:

On 21/03/10 15:48, Markus Roberts wrote:
I have the same analysis. I'm going to read Luke's event patch again
(was it published on puppet-dev?) and see what happened to this source
accessor.

See the discussion thread titled "Events and reports refactor" from
last November and the code storm on 20 January of this year.

I explored Lak's repositories and found that event.source was renamed
into event.resource (apparently).

Something like that - it looks like that should work for the purposes of this, although I'd definitely test it. I think for most cases both the resource and property will be set (to strings), but I think there are some cases where just the source_description is set. For some reason I've made 'log_source' a private method; this would probably actually be the best thing to use, since it picks the best value.

--
I believe that if it were left to artists to choose their own labels,
most would choose none. -- Ben Shahn
---------------------------------------------------------------------
Luke Kanies  -|-   http://reductivelabs.com   -|-   +1(615)594-8199

--
You received this message because you are subscribed to the Google Groups "Puppet 
Developers" group.
To post to this group, send email to puppet-...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to