Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
michalpristas committed Feb 16, 2021
1 parent 9e1f96d commit a599a3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/elastic-agent/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a599a3b

Please sign in to comment.