The 'content' comparator should always run, so when this section gets hit:

  if @@demo_classvars[:num_runs] == @@demo_classvars[:num_demo_resources] then

Then @@demo_classvars can be reset so that the next run will re-initialize.

I'm not certain if there is a portion of the provider code that gets
run every time at the end without fail. There might be but I can't
check the code right now.

Thanks,

Trevor




On Thu, Jan 9, 2014 at 1:10 PM, John Bollinger <[email protected]>wrote:

>
>
> On Wednesday, January 8, 2014 12:31:53 PM UTC-6, Trevor Vaughan wrote:
>>
>> Hi John,
>>
>> You just  noticed that I never run in daemon mode :-). I probably need to
>> add a reset to the initialized value in the @@demo_classvars to handle
>> daemon mode because, yes, they will probably persist between runs.
>>
>> I believe that, during testing, I found that, if any resource in the
>> chain died, the flush would not be called but I'm not quite remembering. I
>> tend to only use this when I'm not inter-weaving a lot of resources. I do
>> know that if a dependency fails, then the entire chain fails, but I'm not
>> sure about a random error in the chain.
>>
>>
>
> Ok.  The follow up, then, is where reset code would reside.  My first
> thought was that resetting the long-lived state should be part of the final
> flush, but if that might not always be triggered then it's not suitable for
> the purpose.
>
>
> John
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-dev/07b4580d-fdf8-4e56-ac8a-6c09c10ccf9f%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
[email protected]

-- This account not approved for unencrypted proprietary information --

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CANs%2BFoVv68gJn_fGK5iQE%3DXD7GinVVCxF6fgLyfOU0KzhiOgzA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to