Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dispatch proper values in Python write plugin
Fixes the Python write callback so the appropriate value is dispatched to Python. Previously, the code only looked at the first element of a data set to determine which value type (GAUGE, COUNTER, etc) to dispatch. If your data set consisted of multiple values of different types, then the Python write plugin was receiving bad values for the elements at position n > 0 whose type was not the same as that at position 0.
- Loading branch information
31bc4bc
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 good to me. Please open a pull request (for collectd/collectd).
31bc4bc
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.
I'm pretty sure I've upstreamed this already...