On Wednesday, May 9, 2012 2:45:46 PM UTC-7, Nick Lewis wrote:
>
>
> Here's a gist with a minimal implementation of this functionality, which 
> hopefully will make it clear where your code differs (and if it really 
> doesn't differ, we have a truly fascinating mystery on our hands!):
>

Hmm. well, i threw together a stupidly stripped down version, and it 
worked.. so then I went back to my real code, ... and I notice it works now 
too :-/ 
maybe I messed up the debugging.
Thanks for the reply confirming that it's supposed to work that way :)



>  `validate do` is basically just a convention to do something like 
> `validate if respond_to? :validate`. It defines a validation block, which 
> is then used implicitly by Puppet as part of applying the catalog. It could 
> also have been implemented by having Puppet call any given "validate" 
> method, if one is provided. I suppose the reasoning was that this way seems 
> less like magic and more like an obvious part of the type API; I'm not 
> entirely sure.
>

Hmm. that seems like somewhat circular definition there. I'm a bit lost. 
but oh well, it works now :-}

Its too bad that the "validate" code doesnt trigger for the "puppet parser 
validate" phase, though. I thought it would. But it doesnt appear to.


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-dev/-/hsDuIFE_unQJ.
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