LibreCat / Catmandu

Catmandu - a data processing toolkit
https://librecat.org
175 stars 31 forks source link

Catmandu->store configuration options can only be overwritten one time. #325

Closed phochste closed 6 years ago

phochste commented 6 years ago

I have a catmandu.yml like:

---
store:
   foo:
      package: ElasticSearch
      options:
              index_name: foo

When in my code do:

  my $store = Catmandu->store('foo');

I get a store pointing with index_name 'foo'. But when later on in my code I change my mind and want to connect to 'bar':

   $store = Catmandu->store('foo', index_name => 'bar');

The store will still point to `index_name' 'foo'. The 'foo' store is cached.

nics commented 6 years ago

Fixed in cca41995edb3249c339ff3593ad1c6ef0b2dbd87