From ea05d8a5e3dcce559106a7524683a986cd1ca588 Mon Sep 17 00:00:00 2001 From: Frank Stutz Date: Wed, 19 Oct 2016 14:06:45 -0700 Subject: [PATCH] changed config_version to config_version_string and fixed yaml for build --- plugins/inputs/puppetagent/last_run_summary.yaml | 4 ++-- plugins/inputs/puppetagent/puppetagent.go | 4 ++-- plugins/inputs/puppetagent/puppetagent_test.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/inputs/puppetagent/last_run_summary.yaml b/plugins/inputs/puppetagent/last_run_summary.yaml index 1f5dea3ce..796279ec4 100644 --- a/plugins/inputs/puppetagent/last_run_summary.yaml +++ b/plugins/inputs/puppetagent/last_run_summary.yaml @@ -30,5 +30,5 @@ last_run: 1444936531 cron: 0.000584 version: - config: 1444936521 - puppet: "3.7.5" \ No newline at end of file + config: "branch:d6018ce" + puppet: "3.7.5" diff --git a/plugins/inputs/puppetagent/puppetagent.go b/plugins/inputs/puppetagent/puppetagent.go index 7b8f5e747..3b22c3d10 100644 --- a/plugins/inputs/puppetagent/puppetagent.go +++ b/plugins/inputs/puppetagent/puppetagent.go @@ -68,8 +68,8 @@ type time struct { } type version struct { - Config string `yaml:"config"` - Puppet string `yaml:"puppet"` + Config_string string `yaml:"config"` + Puppet string `yaml:"puppet"` } // SampleConfig returns sample configuration message diff --git a/plugins/inputs/puppetagent/puppetagent_test.go b/plugins/inputs/puppetagent/puppetagent_test.go index e8704863b..c03469a1d 100644 --- a/plugins/inputs/puppetagent/puppetagent_test.go +++ b/plugins/inputs/puppetagent/puppetagent_test.go @@ -28,7 +28,7 @@ func TestGather(t *testing.T) { "resources_outofsync": int64(0), "changes_total": int64(0), "time_lastrun": int64(1444936531), - "version_config": "branch:d6018ce", + "version_config_string": "branch:d6018ce", "time_user": float64(0.004331), "time_schedule": float64(0.001123), "time_filebucket": float64(0.000353),