Re: [Puppet Users] Making a Provider API Call Idempotent

2015-10-16 Thread Danny Roberts
> > > Excellent analysis, you've almost solved it. > > https://github.com/kemra102/puppet-githubapi/blob/master/lib/puppet/provider/github_repo/default.rb#L78 > > returns the value from the API. This has to match what puppet receives > from the manifest. Adding '.to_sym' or something similar s

Re: [Puppet Users] Making a Provider API Call Idempotent

2015-10-16 Thread David Schmitt
On 14/10/2015 22:56, Danny Roberts wrote: In a custom type/provider I am writing it seems that the provider is not entirely idempotent. The provider (https://github.com/kemra102/puppet-githubapi/blob/master/lib/puppet/provider/github_repo/default.rb) is calling the Github API (https://devel

[Puppet Users] Making a Provider API Call Idempotent

2015-10-14 Thread Danny Roberts
In a custom type/provider I am writing it seems that the provider is not entirely idempotent. The provider (https://github.com/kemra102/puppet-githubapi/blob/master/lib/puppet/provider/github_repo/default.rb) is calling the Github API (https://developer.github.com/v3/repos/#edit) and amending