Eliminate merging directory structures

This commit is contained in:
Cameron Sparr
2015-11-23 16:28:11 -07:00
parent 78f2ea89f8
commit 224a570a08
2 changed files with 32 additions and 80 deletions

View File

@@ -75,7 +75,8 @@ func main() {
)
if *fConfig != "" {
config, err = telegraf.LoadConfig(*fConfig)
config = telegraf.NewConfig()
err = config.LoadConfig(*fConfig)
if err != nil {
log.Fatal(err)
}