From e7d3395edcf5b0cb41d203240ed9000875bf1d27 Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Tue, 1 Mar 2016 10:12:28 +0000 Subject: [PATCH] Remove naoina/toml dependency, use influxdata/toml closes #745 --- CHANGELOG.md | 1 + Godeps | 6 +++--- internal/config/config.go | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74e211fae..b39e639f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ### Bugfixes - [#748](https://github.com/influxdata/telegraf/issues/748): Fix sensor plugin split on ":" - [#722](https://github.com/influxdata/telegraf/pull/722): Librato output plugin fixes. Thanks @chrusty! +- [#745](https://github.com/influxdata/telegraf/issues/745): Fix Telegraf toml parse panic on large config files. ## v0.10.4.1 diff --git a/Godeps b/Godeps index d2ac1857f..7389b1cb8 100644 --- a/Godeps +++ b/Godeps @@ -18,15 +18,16 @@ github.com/gonuts/go-shellquote e842a11b24c6abfb3dd27af69a17f482e4b483c2 github.com/gorilla/context 1c83b3eabd45b6d76072b66b746c20815fb2872d github.com/gorilla/mux 26a6070f849969ba72b72256e9f14cf519751690 github.com/hailocab/go-hostpool e80d13ce29ede4452c43dea11e79b9bc8a15b478 -github.com/influxdata/config bae7cb98197d842374d3b8403905924094930f24 +github.com/influxdata/config b79f6829346b8d6e78ba73544b1e1038f1f1c9da github.com/influxdata/influxdb ef571fc104dc24b77cd3710c156cd95e5cfd7aa5 +github.com/influxdata/toml af4df43894b16e3fd2b788d01bd27ad0776ef2d0 github.com/jmespath/go-jmespath c01cf91b011868172fdcd9f41838e80c9d716264 github.com/klauspost/crc32 999f3125931f6557b991b2f8472172bdfa578d38 github.com/lib/pq 8ad2b298cadd691a77015666a5372eae5dbfac8f github.com/matttproud/golang_protobuf_extensions d0c3fe89de86839aecf2e0579c40ba3bb336a453 +github.com/miekg/dns e0d84d97e59bcb6561eae269c4e94d25b66822cb github.com/mreiferson/go-snappystream 028eae7ab5c4c9e2d1cb4c4ca1e53259bbe7e504 github.com/naoina/go-stringutil 6b638e95a32d0c1131db0e7fe83775cbea4a0d0b -github.com/naoina/toml 751171607256bb66e64c9f0220c00662420c38e9 github.com/nats-io/nats 6a83f1a633cfbfd90aa648ac99fb38c06a8b40df github.com/nsqio/go-nsq 2118015c120962edc5d03325c680daf3163a8b5f github.com/pmezard/go-difflib 792786c7400a136282c1664665ae0a8db921c6c2 @@ -50,4 +51,3 @@ gopkg.in/dancannon/gorethink.v1 6f088135ff288deb9d5546f4c71919207f891a70 gopkg.in/fatih/pool.v2 cba550ebf9bce999a02e963296d4bc7a486cb715 gopkg.in/mgo.v2 03c9f3ee4c14c8e51ee521a6a7d0425658dd6f64 gopkg.in/yaml.v2 f7716cbe52baa25d2e9b0d0da546fcf909fc16b4 -github.com/miekg/dns e0d84d97e59bcb6561eae269c4e94d25b66822cb \ No newline at end of file diff --git a/internal/config/config.go b/internal/config/config.go index b5b73e06e..a7a9eaab4 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -19,7 +19,7 @@ import ( "github.com/influxdata/telegraf/plugins/serializers" "github.com/influxdata/config" - "github.com/naoina/toml/ast" + "github.com/influxdata/toml/ast" ) // Config specifies the URL/user/password for the database that telegraf