summaryrefslogtreecommitdiff
path: root/heatclient/exc.py
diff options
context:
space:
mode:
authorSulochan Acharya <sulochan@gmail.com>2013-05-29 18:04:46 -0500
committerSulochan Acharya <sulochan@gmail.com>2013-05-31 13:40:44 -0500
commit9b1ce2108189cdfd499e116500fad566670260bc (patch)
tree4ed8bd8c85363aa61e849484f84bc00590e2fc2e /heatclient/exc.py
parent2e6e49f7fa49c977fb9e406e1a49a99792e80775 (diff)
downloadpython-heatclient-9b1ce2108189cdfd499e116500fad566670260bc.tar.gz
Fixes text split for parameters
Make text split only on the first "=" element, this will allow for values to have multiple "=" in the string. Also, ensure that key = value pair is honored in parameters, exit otherwise with error message. Tests included. Fixes bug #1183842 Change-Id: Ic8897405c61dee49f5927b53f055b0d0686eea7d
Diffstat (limited to 'heatclient/exc.py')
-rw-r--r--heatclient/exc.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/heatclient/exc.py b/heatclient/exc.py
index c90b0fc..ddadfb7 100644
--- a/heatclient/exc.py
+++ b/heatclient/exc.py
@@ -39,6 +39,11 @@ class HTTPException(BaseException):
code = 'N/A'
+class MalformedRequestBody(BaseException):
+ """Malformed parameter in request."""
+ pass
+
+
class HTTPMultipleChoices(HTTPException):
code = 300