Use WeakDecode to decode the initialize values (#2871)

This commit is contained in:
Brian Kassouf
2017-06-14 18:59:27 -07:00
committed by GitHub
parent 4dea784fac
commit b9871fc9ad
7 changed files with 52 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ func (c *mongoDBConnectionProducer) Initialize(conf map[string]interface{}, veri
c.Lock()
defer c.Unlock()
err := mapstructure.Decode(conf, c)
err := mapstructure.WeakDecode(conf, c)
if err != nil {
return err
}