Merge "Fix `'NoneType' object has no attribute 'update'` when receiver params are not defined but a request contains data"

This commit is contained in:
Zuul 2018-12-19 17:39:30 +00:00 committed by Gerrit Code Review
commit 9cdad69955
1 changed files with 2 additions and 0 deletions

View File

@ -2537,6 +2537,8 @@ class EngineService(service.Service):
raise exception.BadRequest(msg=msg)
data = copy.deepcopy(receiver.params)
if data is None:
data = {}
if params:
data.update(params)