fix(context): Global values have precedence over defaults

This commit is contained in:
Vincent Ambo 2018-06-09 20:45:42 +02:00 committed by Vincent Ambo
parent ae6d960df9
commit 77ca5b47cf

View file

@ -168,7 +168,7 @@ func (ctx *Context) mergeContextValues() []ResourceSet {
for i, rs := range ctx.ResourceSets {
merged := loadDefaultValues(&rs, ctx)
merged = util.Merge(&ctx.Global, merged)
merged = util.Merge(merged, &ctx.Global)
merged = util.Merge(merged, &ctx.ImportedVars)
merged = util.Merge(merged, &ctx.ExplicitVars)
rs.Values = *merged