Skip to content

Commit

Permalink
command add comments re: defaults to LoadConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
langmartin committed Jun 12, 2019
1 parent 62eb608 commit 8b49c5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions command/agent/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8b49c5e

Please sign in to comment.