Merge "Avoid JsonPatch twice"

This commit is contained in:
Jenkins 2015-11-02 07:45:15 +00:00 committed by Gerrit Code Review
commit 912aef4e44
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ def apply_jsonpatch(doc, patch):
msg = _('Adding a new attribute (%s) to the root of '
' the resource is not allowed')
raise wsme.exc.ClientSideError(msg % p['path'])
return jsonpatch.apply_patch(doc, jsonpatch.JsonPatch(patch))
return jsonpatch.apply_patch(doc, patch)
def get_rpc_resource(resource, resource_ident):