Fix PAPI async response 40/4840/1
authorWojciech Dec <wdec@cisco.com>
Tue, 24 Jan 2017 13:18:12 +0000 (14:18 +0100)
committerWojciech Dec <wdec@cisco.com>
Tue, 24 Jan 2017 13:18:12 +0000 (14:18 +0100)
Previous changes forgot to return the decoded result

Change-Id: I4eb27802eb2672532d856d9b9671ef806374bcd0
Signed-off-by: Wojciech Dec <wdec@cisco.com>
src/vpp-api/python/vpp_papi/vpp_papi.py

index 8de1e4b..cefbe37 100644 (file)
@@ -502,7 +502,7 @@ class VPP():
         msgname = type(r).__name__
 
        if self.event_callback:
-           self.event_callback(msgname, msg)
+           self.event_callback(msgname, r)
 
     def _control_ping(self, context):
         """Send a ping command."""