Failing provider check

8 views
Skip to first unread message

patant

unread,
Oct 20, 2011, 5:26:50 AM10/20/11
to puppet...@googlegroups.com
Hi,

Runing puppet version 2.6.2

Created a provider and type from http://projects.puppetlabs.com/projects/puppet/wiki/Development_Complete_Resource_Example the first one with file. Just renamed the type to pfile.
A put it on the puppetmaster, configured it for a client and triggered a run. Works fine and the file is created. But next time I do a puppet run I get this:

err: /Stage[main]//Node[client.test.com]/Pfile[/tmp/testfile2]: Could not evaluate: No ability to determine if pfile exists

The exists? method on the provider never runs.

Did a test and changed an debug output I have on the provider and run it again. After the change of provider code it run the exists? method and it worked fine.
But when a trigger a run again I get the same error message as before.

So every time I do a change in the provider code it works. Could someone please explain. 

Cheers
Patrik
Reply all
Reply to author
Forward
0 new messages