Skip to content

Commit

Permalink
fix for puppetagent config - test 1
Browse files Browse the repository at this point in the history
put Makefile back to normal

removed comment from puppetagent.go

changed config_version to config_version_string and fixed yaml for build

changed workind from branch to environment for config_string

fixed casing and Changelog

fixed test case

closes #1917
  • Loading branch information
frankxoom authored and sparrc committed Dec 16, 2016
1 parent a970b9c commit e6fc32b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ in their config file.
- [#2045](https://github.com/influxdata/telegraf/issues/2045): Graylog output should set short_message field.
- [#1904](https://github.com/influxdata/telegraf/issues/1904): Hddtemp always put the value in the field temperature.
- [#1693](https://github.com/influxdata/telegraf/issues/1693): Properly collect nested jolokia struct data.
- [#1917](https://github.com/influxdata/telegraf/pull/1917): fix puppetagent inputs plugin to support string for config variable.

## v1.1.2 [2016-12-12]

Expand Down
4 changes: 2 additions & 2 deletions plugins/inputs/puppetagent/last_run_summary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
last_run: 1444936531
cron: 0.000584
version:
config: 1444936521
puppet: "3.7.5"
config: "environment:d6018ce"
puppet: "3.7.5"
4 changes: 2 additions & 2 deletions plugins/inputs/puppetagent/puppetagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ type time struct {
}

type version struct {
Config int64 `yaml:"config"`
Puppet string `yaml:"puppet"`
ConfigString string `yaml:"config"`
Puppet string `yaml:"puppet"`
}

// SampleConfig returns sample configuration message
Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/puppetagent/puppetagent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestGather(t *testing.T) {
"resources_outofsync": int64(0),
"changes_total": int64(0),
"time_lastrun": int64(1444936531),
"version_config": int64(1444936521),
"version_configstring": "environment:d6018ce",
"time_user": float64(0.004331),
"time_schedule": float64(0.001123),
"time_filebucket": float64(0.000353),
Expand Down

0 comments on commit e6fc32b

Please sign in to comment.