Gives priority to dst when the src parameter is nil

Signed-off-by: Marshall <manschutz@unwrittenmediainc.com>
pull/6917/head
Marshall Anschutz 6 years ago committed by Marshall
parent 865c46c014
commit c0bcd5958c

@ -180,7 +180,10 @@ func coalesceValues(c *chart.Chart, v map[string]interface{}) {
//
// dest is considered authoritative.
func CoalesceTables(dst, src map[string]interface{}) map[string]interface{} {
if dst == nil || src == nil {
if src == nil {
return dst
}
if dst == nil {
return src
}
// Because dest has higher precedence than src, dest values override src

Loading…
Cancel
Save