Okay,

I figured out what I was doing wrong...

I did not place the provider inside it's own directory in lib ('lib/
puppet/provider/simple/simple.rb').

Foolish.

Still, perhaps somebody can explain why this works the first time, but
subsequently fails?

Any info appreciated.

Thanks,

On May 1, 9:56 am, Brian Warsing <[email protected]> wrote:
> I have run into an issue where a Simple/Type provider will worl
> correctly on the first run,  but subsequent runs produice an error:
>
> err: /Stage[main]/Custom/Simple[some_useless_file]: Could not
> evaluate: No ability to determine if simple exists
>
> Here is the code:
>
> https://gist.github.com/2569267
>
> I have created several other providers, and I have run into this issue
> before, but I don't know how to explain it. Sometimes, it just goes
> away, btu then there are times like this, when it persists regardless
> of what I do.
>
> Other times, a simple change to the provider code like adding a `puts`
> statement, will renew the ability to apply, but very often it is
> (again) only for a single run.
>
> Likewise, purging the contents of /var/lib/puppet will induce it to
> work, but subsequent runs again fail.
>
> I am seriously baffled by this.
>
> Can anybody enlighten me?
>
> Thanks,
>
> --
> Brian

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

Reply via email to