From a599a3b60508a811c9c226163f0794d5d9307ea2 Mon Sep 17 00:00:00 2001 From: Michal Pristas Date: Tue, 16 Feb 2021 13:43:48 +0100 Subject: [PATCH] comment --- x-pack/elastic-agent/pkg/config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/elastic-agent/pkg/config/config.go b/x-pack/elastic-agent/pkg/config/config.go index c065d955aff..2de84972a6b 100644 --- a/x-pack/elastic-agent/pkg/config/config.go +++ b/x-pack/elastic-agent/pkg/config/config.go @@ -117,7 +117,8 @@ func NewConfigFrom(from interface{}, opts ...interface{}) (*Config, error) { if len(skippedKeys) > 0 { err = cfg.Merge(skippedKeys, ucfg.ResolveNOOP) - // we're modifying object + // we modified incoming object + // cleanup so skipped keys are not missing for k, v := range skippedKeys { data[k] = v }