diff options
author | Ruby Loo <ruby.loo@intel.com> | 2017-03-29 20:25:20 +0000 |
---|---|---|
committer | Ruby Loo <ruby.loo@intel.com> | 2017-03-29 20:25:20 +0000 |
commit | e0d128b9aba60d86fc451eadf6e259d9f6e317b8 (patch) | |
tree | 89ddd9663d052235f9d1ded837e621c4ac83f489 | |
parent | a84c2e0d8e8a69290836f57ff501bbe7db5ba399 (diff) | |
download | ironic-e0d128b9aba60d86fc451eadf6e259d9f6e317b8.tar.gz |
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
-rw-r--r-- | ironic/api/controllers/v1/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic/api/controllers/v1/utils.py b/ironic/api/controllers/v1/utils.py index b17d7c1a1..da5b5ec0b 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)) |