Remove extra blank space in ClientSide error msg

This removes the extra blank space in the error message
'Adding a new attribute (%s)s to the root of  the resource
is not allowed'.

Change-Id: I642ec65b3f52d83b01777d71684c37edad4a3553
This commit is contained in:
Ruby Loo 2017-03-29 20:25:20 +00:00
parent a84c2e0d8e
commit e0d128b9ab

@ -89,7 +89,7 @@ def apply_jsonpatch(doc, patch):
if p['op'] == 'add' and p['path'].count('/') == 1:
if p['path'].lstrip('/') not in doc:
msg = _('Adding a new attribute (%s) to the root of '
' the resource is not allowed')
'the resource is not allowed')
raise wsme.exc.ClientSideError(msg % p['path'])
return jsonpatch.apply_patch(doc, jsonpatch.JsonPatch(patch))