Merge pull request #265 from kevgliss/257

Closes #257
This commit is contained in:
kevgliss 2016-04-01 10:11:32 -07:00
commit 5958bac2a2
1 changed files with 2 additions and 2 deletions

View File

@ -376,7 +376,7 @@ class Notifications(AuthenticatedResource):
:statuscode 200: no error :statuscode 200: no error
""" """
self.reqparse.add_argument('label', type=str, location='json', required=True) self.reqparse.add_argument('label', type=str, location='json', required=True)
self.reqparse.add_argument('plugin', type=dict, location='json', required=True) self.reqparse.add_argument('notificationOptions', type=list, location='json')
self.reqparse.add_argument('active', type=bool, location='json') self.reqparse.add_argument('active', type=bool, location='json')
self.reqparse.add_argument('certificates', type=list, default=[], location='json') self.reqparse.add_argument('certificates', type=list, default=[], location='json')
self.reqparse.add_argument('description', type=str, location='json') self.reqparse.add_argument('description', type=str, location='json')
@ -385,7 +385,7 @@ class Notifications(AuthenticatedResource):
return service.update( return service.update(
notification_id, notification_id,
args['label'], args['label'],
args['plugin']['pluginOptions'], args['notificationOptions'],
args['description'], args['description'],
args['active'], args['active'],
args['certificates'] args['certificates']