From e0d128b9aba60d86fc451eadf6e259d9f6e317b8 Mon Sep 17 00:00:00 2001 From: Ruby Loo Date: Wed, 29 Mar 2017 20:25:20 +0000 Subject: [PATCH] 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 --- ironic/api/controllers/v1/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ironic/api/controllers/v1/utils.py b/ironic/api/controllers/v1/utils.py index b17d7c1a14..da5b5ec0b0 100644 --- a/ironic/api/controllers/v1/utils.py +++ b/ironic/api/controllers/v1/utils.py @@ -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))