We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When DataWatch has allow_missing_node enabled, the data argument given to the callback is always None
Test program:
import kazoo.client c = kazoo.client.KazooClient(<host>) c.start() c.create('/testnode', 'DATA') @c.DataWatch('/testnode', allow_missing_node=True) def signal_update(data, stat): print data, stat c.set('/testnode', 'NEW_DATA')
Prints:
None ZnodeStat(czxid=8591709603, mzxid=8591709603, ctime=1355968927708, mtime=1355968927708, version=0, cversion=0, aversion=0, ephemeralOwner=0, dataLength=4, numChildren=0, pzxid=8591709603) None ZnodeStat(czxid=8591709603, mzxid=8591709604, ctime=1355968927708, mtime=1355968927712, version=1, cversion=0, aversion=0, ephemeralOwner=0, dataLength=8, numChildren=0, pzxid=8591709603)
The text was updated successfully, but these errors were encountered:
I'm looking forward to seeing this fixed as well... :)
Sorry, something went wrong.
Fix allow_missing_node, fix tests as well which were in hind-sight to…
53f0afa
…tally wrong for testing it. Fixes Issue #43.
I've tested that this actually fixes the issue, the tests were also quite broke.
No branches or pull requests
When DataWatch has allow_missing_node enabled, the data argument given to the callback is always None
Test program:
Prints:
The text was updated successfully, but these errors were encountered: