Server external event notify response expection

1. What is the problem?

when create vm, neutron notify to nova about network-vif-unplugged event.
trio2o response list to neutron rather than dict.

2. What is the solution to the problem?

The response data is returned in server external event post processing
using {' events' : event_list}

Change-Id: Id6b4c5447cd1408c6f8e9d2fffbedd8c8a584d5d
Signed-off-by: zhang xiaohan <zhangxiaohan@szzt.com.cn>
Co-Authored-By: tangzhuo <ztang@hnu.edu.cn>
This commit is contained in:
zhangxiaohan 2018-09-30 11:22:39 +08:00
parent fdc50d86d9
commit 87993cd26a
1 changed files with 2 additions and 1 deletions

View File

@ -49,4 +49,5 @@ class ServerExternalEventController(rest.RestController):
pod = mappings[0][0]
client = self._get_client(pod['pod_name'])
return client.create_server_external_events(context, events)
return {'events': client.create_server_external_events(
context, events)}