On May 2, 7:43 pm, Luke Kanies <[email protected]> wrote:
> It's great to hear you found the problem, that should be easier to not get 
> wrong.  What docs were you following when you made this?

In this case, I wasn't using any documentation. I have created types/
providers before, and I have tripped over this before.

In terms of organization, it's logical that providers are grouped
under a directory (named by Puppet Type) -- I simply have a tendancy
to presume it to have the same org as a custom type.

Maybe it will stick this time? ;)

> As to why it works the first time but not others…  I can only think it had 
> something weird to do with file naming, but I can't really imagine what.

Thanks for the reply.

> On May 2, 2012, at 7:58 AM, Brian Warsing wrote:
>
>
>
>
>
>
>
>
>
> > 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 
> > athttp://groups.google.com/group/puppet-dev?hl=en.
>
> --
> Luke Kanies |http://about.me/lak|http://puppetlabs.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 [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