tweaking a few things to support the new marshmallow (#522)

This commit is contained in:
kevgliss
2016-11-22 15:14:19 -08:00
committed by GitHub
parent 0158807847
commit 9d03e75d9b
7 changed files with 25 additions and 12 deletions

View File

@ -30,7 +30,8 @@ class NotificationOutputSchema(LemurOutputSchema):
@post_dump
def fill_object(self, data):
data['plugin']['pluginOptions'] = data['options']
if data:
data['plugin']['pluginOptions'] = data['options']
return data