]> git.proxmox.com Git - ovs.git/commit
windows, python: Fix event type returned from poller
authorAlin Balutoiu <abalutoiu@cloudbasesolutions.com>
Tue, 22 Aug 2017 10:47:21 +0000 (10:47 +0000)
committerAlin Gabriel Serdean <aserdean@ovn.org>
Wed, 23 Aug 2017 15:19:49 +0000 (18:19 +0300)
commite2e31d17f88d14fdabb720cf895bc2b705c8ed9a
tree066724bc946c580994d3731d7b25b7f69bc761c1
parentf6fabcc62458d656046c9852ee80fcff3e516e6e
windows, python: Fix event type returned from poller

The function poll from poller should return a list of tuples
containing the events and their types.

On Windows the event type is not returned at the moment.
Instead of returning zero all the time, we check to see
the type of event and we set it accordingly before returning
the list.

This is used only for debugging purposes inside the function
"__log_wakeup" later on.

Signed-off-by: Alin Balutoiu <abalutoiu@cloudbasesolutions.com>
Acked-by: Russell Bryant <russell@ovn.org>
Acked-by: Alin Gabriel Serdean <aserdean@ovn.org>
Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
python/ovs/poller.py