Re: [Puppet-dev] Exists? is called before prefetching

2017-07-18 Thread bert hajee
Reid, Thanks for this direction. I will try and see if I can come up with a good PR to solve this. On Monday, 17 July 2017 23:03:54 UTC+2, Reid Vandewiele wrote: > > > > On Sunday, July 16, 2017 at 6:04:04 AM UTC-7, bert hajee wrote: >> >> Trevor, Reid, >> >> Thanks for taking the time to

Re: [Puppet-dev] Exists? is called before prefetching

2017-07-17 Thread Reid Vandewiele
On Sunday, July 16, 2017 at 6:04:04 AM UTC-7, bert hajee wrote: > > Trevor, Reid, > > Thanks for taking the time to look at this. > > Exists should be checking the @property_hash object which is populated by >> the instances method. >> Something like: >> def exists? >>

Re: [Puppet-dev] Exists? is called before prefetching

2017-07-16 Thread bert hajee
Trevor, Reid, Thanks for taking the time to look at this. Exists should be checking the @property_hash object which is populated by > the instances method. > Something like: > def exists? > @property_hash[:ensure] == :present > end The real type does implement the exists? method by

Re: [Puppet-dev] Exists? is called before prefetching

2017-07-14 Thread Reid Vandewiele
I haven't dived into the code recently but depending on when prefetching happens, it might be possible the Transition type is causing an "early" invocation of #exists?. This is because Transition invokes a check of the resource it is "prior to", thusly:

Re: [Puppet-dev] Exists? is called before prefetching

2017-07-13 Thread Trevor Vaughan
Sorry for the double post but this is probably the best walkthrough on the subject out there presently http://garylarizza.com/blog/2013/12/15/seriously-what-is-this-provider-doing/ On Thu, Jul 13, 2017 at 9:48 AM, Trevor Vaughan wrote: > HI Bert, > > Exists should be

Re: [Puppet-dev] Exists? is called before prefetching

2017-07-13 Thread Trevor Vaughan
HI Bert, Exists should be checking the @property_hash object which is populated by the instances method. Something like: def exists? @property_hash[:ensure] == :present end Trevor On Mon, Jul 10, 2017 at 9:24 AM, bert hajee wrote: > Hallo, > > I'm using the puppet