Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix puppetagent inputs plugin to support strings for config variable for environments #1917

Closed

Conversation

frankxoom
Copy link
Contributor

@frankxoom frankxoom commented Oct 18, 2016

Required for all PRs:

  • CHANGELOG.md updated (we recommend not updating this until the PR has been approved by a maintainer)
  • Sign CLA (if not already signed)
  • README.md updated (if adding a new plugin)

@frankxoom frankxoom changed the title fix for puppetagent config - test 1 fix puppetagent inputs plugin to support strings for config variable for environments Oct 18, 2016
@sparrc
Copy link
Contributor

sparrc commented Oct 19, 2016

can you explain what this change is about? why is it necessary? has a puppet agent field changed in a newer version?

@sparrc sparrc added this to the Future Milestone milestone Oct 19, 2016
@sparrc
Copy link
Contributor

sparrc commented Oct 19, 2016

@frankxoom nevermind, Sean pointed to the zendesk ticket referencing this.

I agree that this field should be a string, but unfortunately this would be a breaking change for anyone currently using the plugin. They will receive an error saying that the version_config field already exists as an int, and can't be written as a string.

for this reason, could you also change the name of the field to version_config_string? that way the version_config int field will simply get dropped.

You'll also need to get the unit tests passing before I can merge.

@sparrc sparrc modified the milestones: 1.2.0, Future Milestone Oct 19, 2016
@frankxoom
Copy link
Contributor Author

@sparrc I made the changes you suggested, and the unit tests have passed. Let me know if there is something else you would like changed.

Thanks for your assistance.

--Frank Stutz

sparrc
sparrc previously requested changes Oct 20, 2016
@@ -68,8 +68,8 @@ type time struct {
}

type version struct {
Config string `yaml:"config"`
Puppet string `yaml:"puppet"`
Config_string string `yaml:"config"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be ConfigString

@sparrc sparrc dismissed their stale review October 20, 2016 10:04

not displaying

@@ -68,8 +68,8 @@ type time struct {
}

type version struct {
Config int64 `yaml:"config"`
Puppet string `yaml:"puppet"`
Config_string string `yaml:"config"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be ConfigString

@sparrc
Copy link
Contributor

sparrc commented Oct 20, 2016

thanks @frankxoom update the casing, sign the CLA, and update the changelog and I can merge this

@frankxoom
Copy link
Contributor Author

@sparrc

Okay, I updated casing, changelog (I put in 1.2 since you put in that milestone), and signed CLA. Thanks for your help.

@sparrc sparrc closed this in e6fc32b Dec 16, 2016
njwhite pushed a commit to njwhite/telegraf that referenced this pull request Jan 31, 2017
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 influxdata#1917
maxunt pushed a commit that referenced this pull request Jun 26, 2018
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants