ap qtree_info# Check if it is a NaElementnext unless qtree_info.respond_to?(:child_get_string)# Pull out the qtree name.name = qtree_info.child_get_string("qtree")
...
--
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 puppet-dev+...@googlegroups.com.
To post to this group, send email to puppe...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Luke
No worries.
For the 2 I've converted soo far, it's made quite a performance difference. Thankfully can pull back all the resources with one NetApp api call, so it's drop the resource time from 5+ seconds to sub 1 second.
However was a bit confused initially, as different providers seem to use different models... Some with just prefetch, some with just instances, some with both...
However I'm just about to start the more complex netapp_volume provider, which has 4+ properties that have different api calls on top of the base resource list call. This is by far the slowest provider out of them with an average of 20+ seconds per run.
So not sure of the best way to handle as yet.
Cheers
Gav
You received this message because you are subscribed to a topic in the Google Groups "Puppet Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-dev/74JW491YSAk/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to puppet-dev+...@googlegroups.com.
Luke
Cheers for that info, should prive useful...
Guess I could implement a method for each property that pulls back all that property values for all the volumes, and then match them up in prefetch.
Cheers
Gav
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscribe@googlegroups.com.
To post to this group, send email to puppe...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-dev/74JW491YSAk/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to puppet-dev+unsubscribe@googlegroups.com.
To post to this group, send email to puppe...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
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 puppet-dev+unsubscribe@googlegroups.com.
To post to this group, send email to puppe...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-dev/74JW491YSAk/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to puppet-dev+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To post to this group, send email to puppe...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to puppet-dev+...@googlegroups.com.
'Flush' then calls the user modification if required...I was looking at doing all the work in the 'flush' method, however have just been doing some more testing and think I've come up with an alternative...Can run the user creation in the 'create' def, and then clear @property_hash so that it doesn't get invoked in 'flush'.
Seems to work quite well from my testing :)
Latest code is: https://github.com/fatmcgav/fatmcgav-netapp/blob/master/lib/puppet/provider/netapp_user/netapp_user.rb