splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

splunklib.modularinput | <done/> written even when done=False

Open Jaykul opened this issue 12 years ago • 2 comments

I promised myself I wouldn't gripe about how long it took us to figure out that there was a bug in the SDK and not in our code or in Splunk's handling of our input ....

Bottom line: in event.py line 103 you are checking if "done is not None" but you default it to "True" so we obviously set it to "False," (not "None") -- you should just be evaluating it for true.

Jaykul avatar Jul 09 '14 15:07 Jaykul

I committed the change you suggested into branch bug/88 and verified that it did not break any modular input tests. Next step: add test coverage for this specific use case and merge into the develop branch.

Note that bug/88 is a branch of the develop branch that contains a number of new features/bug fixes. See CHANGELOG.md for additional information.

David-Noble-at-work avatar Sep 24 '15 17:09 David-Noble-at-work

Hi @Jaykul, we've just released v1.5.0 to address this. Thanks again for the bug report!

shakeelmohamed avatar Oct 02 '15 00:10 shakeelmohamed