summaryrefslogtreecommitdiff
path: root/glanceclient/common/https.py
diff options
context:
space:
mode:
authord34dh0r53 <david.wilde@rackspace.com>2015-01-19 18:02:08 -0600
committerd34dh0r53 <david.wilde@rackspace.com>2015-02-16 10:01:53 -0600
commit01caf4e734fb012f0b5b19c24a8ffeaef31a06be (patch)
tree72a6d61aa4f95a8b0f2bb8393cbf14b367847f97 /glanceclient/common/https.py
parentaebbcff100f5a07e64506d72fbd4427e725085a9 (diff)
downloadpython-glanceclient-01caf4e734fb012f0b5b19c24a8ffeaef31a06be.tar.gz
Strip json and html from error messages
Error messages were being passed with either JSON or HTML formatting leading to an unpleasant user experience. This strips the JSON or HTML tags and presents the clean error message to the user. Rewrote the lispy function to be more pythonic, added test cases and cleaned up some pep8 violations. Removed commented out cruft from a previous version of this patch. Changed the HTML details from a set to a list in order to ensure the ordering of the exception details. Added code to eliminate the duplicate detail messages from the list and reordered the assertion string to match actual output. Refactored duplicate elimination code to be more readable and reliable. Some reworking of the duplication elimination loop to make it more readable. Removed unneeded conditional to filter out empty elements. Change-Id: I79985b3e305cb30328a3c16b025315a8e969243d Closes-Bug: 1398838
Diffstat (limited to 'glanceclient/common/https.py')
0 files changed, 0 insertions, 0 deletions