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 lo
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?
>> @property_hash[:ensure]
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 looking
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:
https://github.com/puppetlabs/puppetlabs
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 checking the @property_hash
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 module transition to help
Hallo,
I'm using the puppet module transition to help me out a nasty puppet
definition situation. But I noticed it sometimes is not idempotent. We
noticed this on a very complex custom type. To make sure the issue is a
clear as can be, we extracted the minimal type/and provider to simulate
thi