Skip to content

Commit

Permalink
Merge pull request influxdata#6580 from influxdata/js-config-file-opt…
Browse files Browse the repository at this point in the history
…ion-fix

Fix config file loading to read from a file
  • Loading branch information
jsternberg committed May 9, 2016
2 parents b39995b + 5a6a341 commit 4748bb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/influxd/run/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (cmd *Command) ParseConfig(path string) (*Config, error) {
log.Printf("Using configuration at: %s\n", path)

config := NewConfig()
if err := config.FromToml(path); err != nil {
if err := config.FromTomlFile(path); err != nil {
return nil, err
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/influxd/run/config_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (cmd *PrintConfigCommand) parseConfig(path string) (*Config, error) {
}

config := NewConfig()
if err := config.FromToml(path); err != nil {
if err := config.FromTomlFile(path); err != nil {
return nil, err
}
return config, nil
Expand Down

0 comments on commit 4748bb1

Please sign in to comment.