Quick update... 

Managed to get this cracked with help from Finch on #Puppet-dev.

Turns out that my exists? was comparing a nil value to absent, which caused 
is to trigger the destroy on every run... 

Changed it to "*@property_hash[:ensure] == :present*" and it all works :) 

Cheers
Gav 

On Friday, 15 March 2013 16:58:02 UTC, Gavin Williams wrote:
>
> Afternoon all
>
> I'm currently trying to fix an issue I've spotted with one of my Netapp 
> providers... 
> Netapp_Export<https://github.com/fatmcgav/fatmcgav-netapp/blob/9195e063e34b01b8c51824a65a57f4e836afb88d/lib/puppet/provider/netapp_export/netapp_export.rb>
>
> Have recently converted it to a prefetch/flush provider so that can 
> simplify some of the code...
> However I've hit an issue with destroying resources... 
>
> The provider reports a successful removal and that is backed up by looking 
> at the filer. However it is reporting a removal on every run through... 
>
> I'm sure there's something simple I'm missing, however I fear I'm getting 
> slightly out of my depth atm... 
>
> Comments welcome... 
>
> Cheers
> Gavin 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to