I am writing my first custom type/provider for a Puppet module. I can 
correctly check for, create & destroy an instance of a resource as well as 
update attributes. The existing implementation of the provider is 
here: 
https://github.com/kemra102/puppet-githubapi/blob/master/lib/puppet/provider/github_repo/default.rb

However if I set an attribute to something other than it's default value at 
the time of creation it is ignored. Specifically in the linked code if I 
set 'has_wiki' to false it is ignored.

I realise I'm missing something in my code but I cannot find any clear 
reference on what it is exactly. This realisation also made me realise that 
collecting all the possible attributes is a potential issue.

So I guess I have 2 questions right now;

1. How do I pass any specified attributes to the create method?
2. Is there an easy way to collect these attributes?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/f0d50b2b-9e8a-4615-b785-84f670ded0bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to