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: update parsing logic of config.Duration #10803

Merged
merged 2 commits into from
Mar 11, 2022

Conversation

powersj
Copy link
Contributor

@powersj powersj commented Mar 10, 2022

Fixes: #10734

@telegraf-tiger telegraf-tiger bot added the fix pr to fix corresponding bug label Mar 10, 2022
@Hipska Hipska added area/configuration ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. labels Mar 10, 2022
config/types.go Show resolved Hide resolved
config/types.go Show resolved Hide resolved
config/types_test.go Show resolved Hide resolved
@powersj powersj merged commit 1560346 into influxdata:master Mar 11, 2022
@powersj powersj deleted the fix/precision-units branch March 11, 2022 15:15
powersj added a commit to powersj/telegraf that referenced this pull request Mar 14, 2022
In influxdata#10803, precision parsing was made more strict so that incorrect
values would be caught. The default precision value however is not
correct as an empty string.

fixes: influxdata#10813
powersj added a commit to powersj/telegraf that referenced this pull request Mar 14, 2022
In influxdata#10803, precision parsing was made more strict so that incorrect
values would be caught. The default precision value however is not
correct as an empty string, but will still accept the emptry string.

fixes: influxdata#10813
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/configuration fix pr to fix corresponding bug ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Telegraf precision parameter parsing in agent configuration
3 participants