-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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: check index before assignment #10299
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @MyaLongmire, thanks for looking into this! One small comment and a question regarding using SplitN
instead of Split
...
👍 This pull request doesn't change the Telegraf binary size 📦 Looks like new artifacts were built from this PR. Expand this list to get them here ! 🐯Artifact URLs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks perfect to me. Thanks @MyaLongmire!!!
(cherry picked from commit 973ffba)
This reverts commit 973ffba.
Required for all PRs:
resolves #10298
Check the index before looking it up in case there is a floating :: eg.
RFC1213-MIB::
instead ofRFC1213-MIB::sysUpTime
, also added unit test. This will now error instead of panic