nova/nova
Brandon Irizarry d627ae8526 Changed an HTTP exception to return proper code
POSTing to /servers with a content-type of text/plain
and a text/plain body results in a response code of 400.
It should be 415. I found this line in the code that
appears to handle this singular case and modified
the HTTP exception used to the correct one. Tests were
also updated accordingly.

Change-Id: I5fa1fdba56803b2ef63b1efaaeeced6ceb7779d9
Closes-Bug: 1567977
(cherry picked from commit a7019a87ba)
2016-04-20 16:49:26 +00:00
..
CA
api Changed an HTTP exception to return proper code 2016-04-20 16:49:26 +00:00
cells Avoid lazy-loads of ec2_ids on Instance 2016-03-15 07:07:15 -07:00
cert Move config options from nova/cert directory 2016-01-14 22:22:34 +00:00
cloudpipe Remove Deprecated EC2 and ObjectStore impl/tests 2016-01-08 06:30:20 -05:00
cmd config options: fix the missed cli options of novncproxy 2016-04-08 00:17:27 +00:00
common Added Keystone and RequestID headers to CORS middleware 2016-03-02 04:53:11 -08:00
compute Merge "Fix: unable to delete instance when cinder is down" into stable/mitaka 2016-04-11 04:27:25 +00:00
conductor Stop providing force_hosts to the scheduler for move ops 2016-03-25 20:35:28 +00:00
conf Revert "virt: reserved hugepages on compute host" 2016-03-14 10:26:23 +00:00
console Fix invalid import order 2016-01-20 05:03:41 -08:00
consoleauth Removal of unnecessary `import_opt`s for cells config options 2016-02-12 14:16:54 +02:00
db Merge "Add include_disabled parameter to service_get_all_by_binary" 2016-03-10 14:01:39 +00:00
hacking Hacking: check for deprecated os.popen() 2016-02-19 21:55:20 -02:00
image Fix retry mechanism for generator results 2016-03-21 14:37:22 +00:00
ipv6
keymgr Migrate from keystoneclient to keystoneauth 2016-01-28 10:55:29 -06:00
locale Imported Translations from Zanata 2016-04-19 06:43:47 +00:00
mks
network stop setting mtu when plugging vhost-user ports 2016-03-22 11:54:12 -04:00
objects Stop providing force_hosts to the scheduler for move ops 2016-03-25 20:35:28 +00:00
openstack Use imageutils from oslo.utils 2016-02-16 18:34:43 +08:00
pci libvirt: implement LibvirtConfigGuestInterface.parse_dom 2016-02-09 09:26:25 -08:00
rdp
scheduler Merge "Make force_ and ignore_hosts comparisons case insensitive" 2016-03-10 16:57:13 +00:00
servicegroup Add service binary/host to service is down log for context 2016-02-26 12:57:57 -05:00
spice
tests Changed an HTTP exception to return proper code 2016-04-20 16:49:26 +00:00
virt libvirt: Allow use of live snapshots with RBD snapshot/clone 2016-04-09 13:29:43 +00:00
vnc config options: Centralise 'vnc' options 2016-02-03 13:36:20 +00:00
volume Check if a exception has a code on it before read the code 2016-04-09 18:24:35 +00:00
wsgi Remove unused logging import and LOG global var 2015-12-25 18:01:12 +08:00
__init__.py
availability_zones.py Merge "Config options: centralize options in availability_zones" 2016-02-20 04:49:15 +00:00
baserpc.py
block_device.py virt: refactor method compute_driver_matches 2016-03-10 00:27:13 +08:00
cache_utils.py Switch to oslo.cache lib 2016-02-02 08:20:13 -05:00
config.py Added Keystone and RequestID headers to CORS middleware 2016-03-02 04:53:11 -08:00
context.py Fix string interpolations at logging calls 2016-03-07 12:05:58 +09:00
crypto.py Tolerate installation of pycryptodome 2016-02-13 21:29:28 -05:00
debugger.py
exception.py Revert "virt: reserved hugepages on compute host" 2016-03-14 10:26:23 +00:00
filters.py Prepare filters for using RequestSpec object 2015-11-16 22:41:02 +01:00
hooks.py Deprecate nova.hooks 2016-03-01 11:52:52 +00:00
i18n.py
loadables.py
manager.py Remove unused logging import and LOG global var 2015-12-25 18:01:12 +08:00
netconf.py
notifications.py Replaced deprecated timeutils methods 2015-11-18 17:45:29 +01:00
opts.py Sample nova.conf file has missing/duplicated config options 2016-03-03 13:08:02 +01:00
paths.py
policy.py use graduated oslo.policy 2015-11-26 13:04:52 +08:00
quota.py
rpc.py Forbid new legacy notification event_type 2016-03-07 10:31:56 +01:00
safe_utils.py Replace safe_utils.getcallargs with inspect.getcallargs 2015-12-11 10:15:37 -05:00
service.py Fix string interpolations at logging calls 2016-03-07 12:05:58 +09:00
signature_utils.py Fix sphinx warnings from signature_utils 2016-01-13 13:56:05 +00:00
test.py Forbid new legacy notification event_type 2016-03-07 10:31:56 +01:00
utils.py Merge "Remove unused methods in nova/utils.py" 2016-03-07 18:15:24 +00:00
version.py
weights.py
wsgi.py config options: centralize section "wsgi" 2016-02-03 13:18:10 +00:00