On Wed, Dec 2, 2009 at 4:03 PM, Brice Figureau < [email protected]> wrote:
> > This renormalizes a mysql storeconfigs database. > It can happen that for (various, some still unexplained) reasons a long > running mysql storeconfigs database contains duplicated resources, > duplicated tags, duplicated parameter names. > This script aims to remove all duplications of such entities. > Are we not using the rails validation methods on purpose ? e.g. validate_uniqueness_of :name will ensure that no two (hosts, parameters etc) will be created. This ofcourse generates another select statement each time (to verify if it already exists)... Ohad -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. 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.
