Remove excessive logging

Resolves helm unittest issue helm-unittest/helm-unittest#237

Signed-off-by: Sean Mills <sean.m.mills@gmail.com>
(cherry picked from commit ce87ece23e)
release-3.13
Sean Mills 12 months ago committed by Matt Farina
parent 2e6357665a
commit 2f03d01b7d
No known key found for this signature in database
GPG Key ID: 92C44A3D421FF7F9

@ -334,11 +334,9 @@ func trimNilValues(vals map[string]interface{}) map[string]interface{} {
valsCopyMap := valsCopy.(map[string]interface{})
for key, val := range valsCopyMap {
if val == nil {
log.Printf("trim deleting %q", key)
// Iterate over the values and remove nil keys
delete(valsCopyMap, key)
} else if istable(val) {
log.Printf("trim copying %q", key)
// Recursively call into ourselves to remove keys from inner tables
valsCopyMap[key] = trimNilValues(val.(map[string]interface{}))
}

Loading…
Cancel
Save