From 8b49c5e64a9ef8a9bfce01a4f7d1e94739120f1f Mon Sep 17 00:00:00 2001 From: Lang Martin Date: Tue, 11 Jun 2019 22:35:43 -0400 Subject: [PATCH] command add comments re: defaults to LoadConfig --- command/agent/config.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/command/agent/config.go b/command/agent/config.go index 08783e0b4..8153fe8aa 100644 --- a/command/agent/config.go +++ b/command/agent/config.go @@ -1471,8 +1471,9 @@ func (r *Resources) Merge(b *Resources) *Resources { return &result } -// LoadConfig loads the configuration at the given path, regardless if -// its a file or directory. +// LoadConfig loads the configuration at the given path, regardless if its a file or +// directory. Called for each -config to build up the runtime config value. Do not apply any +// default values, defaults should be added once in DefaultConfig func LoadConfig(path string) (*Config, error) { fi, err := os.Stat(path) if err != nil {